hw/hw4/hw4/puzzle/Board.java
public int tileAt(int i, int j) throws IndexOutOfBoundsException {

        if ( !validate(i) || !validate(j)  ) throw new IndexOutOfBoundsException("i: " + i + " or j: " + j + " is out of bounds! Please check!\n");

        return board.get(i * N + j);
    }
/** Return value of tile at row i, column j (or 0 if blank). */
Return value of tile at row i, column j (or 0 if blank).
Return value of tile at row i column j ( or 0 if blank ) .
public int tileAt(int i, int j) throws IndexOutOfBoundsException {
        if ( !validate(i) || !validate(j)  ) throw new IndexOutOfBoundsException("i: " + i + " or j: " + j + " is out of bounds! Please check!\n");
        return board.get(i * N + j);
    }
public int tileAt ( int i , int j ) throws IndexOutOfBoundsException { if ( ! validate ( i ) || ! validate ( j ) ) throw new IndexOutOfBoundsException ( "i: " + i + " or j: " + j + " is out of bounds! Please check!\n" ) ; return board . get ( i * N + j ) ; }
Return value of tile at row i, column j (or 0 if blank).
Return value of tile at row i column j ( or 0 if blank ) .