public final boolean isSameSize(final Matrix matrix){
  return this.numRows == matrix.numRows && this.numCols == matrix.numCols;
}

public final boolean isSameSize ( final Matrix matrix ) { return this . numRows == matrix . numRows && this . numCols == matrix . numCols ; }
determines if two this matrix and another matrix have the same dimensions .
