private void validateBounds(int row, int col) { if (row < 0) { throw new IllegalArgumentException("Row " + row + " is less than one."); } if (col < 0) { throw new IllegalArgumentException("Column " + col + " is less than one."); } if (row >= this.internalSizeRows) { throw new IllegalArgumentException("Row " + row + " is greater than size:" + "(" + this.internalSizeRows + "," + this.internalSizeCols + ")"); } if (col >= this.internalSizeCols) { throw new IllegalArgumentException("Column " + col + " is greater than size:" + "(" + this.internalSizeRows + "," + this.internalSizeCols + ")"); }
void validateBounds(int row, int col) { validateBounds(row, col, this.internalSizeRows, this.internalSizeCols);
    private void validateBounds(int row, int col) {     	if (row < 0) {	    throw new IllegalArgumentException("Row " + row + " is less than one.");	}	if (col < 0) {	    throw new IllegalArgumentException("Column " + col + " is less than one.");	}	if (row >= this.internalSizeRows) {	    throw new IllegalArgumentException("Row " + row + " is greater than size:" +					       "(" + this.internalSizeRows + "," +					       this.internalSizeCols + ")");	}	if (col >= this.internalSizeCols) {	    throw new IllegalArgumentException("Column " + col + " is greater than size:" +					       "(" + this.internalSizeRows + "," +					       this.internalSizeCols + ")");	}    }