protected void checkRowIndex(final int row) throws MathIllegalArgumentException {
  if (row < 0 || row >= getRowDimension()) {
    throw new MathIllegalArgumentException(LocalizedCoreFormats.ROW_INDEX,row,0,getRowDimension() - 1);
  }
}

protected void checkRowIndex ( final int row ) throws MathIllegalArgumentException { if ( row < 0 || row >= getRowDimension ( ) ) { throw new MathIllegalArgumentException ( LocalizedCoreFormats . ROW_INDEX , row , 0 , getRowDimension ( ) - 1 ) ; } }
check if a row index is valid .
