<pre>
public class Matrix {
private int[][] m;
public Matrix(int rows, int columns) {
m = new int[rows][columns];
}
public Matrix multiply(Matrix other) {
if (numColumns() != other.numRows()) {
throw new RuntimeException("incompatible sizes");
}
...
}
...
}
</pre>