Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     protected void checkBounds(int row, int column) {
  2.          if((numRows < row) || (row < 0)){
  3.              throw new MatrixException(String.format("The row (%s) is out of range", numRows));
  4.          }
  5.          
  6.          if((numColumns < column) || (column < 0)){
  7.              throw new MatrixException(String.format("The column (%s) is out of range", numColumns));
  8.          }
  9.        
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement