app/src/main/java/sudoku/Solver.java
private int[] nextPosFrom(int r, int c) {
        int[] pos = new int[2];
        if ((c + 1) == getDimension()) {
            pos[0] = r + 1;
            pos[1] = 0;
        } else {
            pos[0] = r;
            pos[1] = c + 1;
        }
        return pos;
    }
/**
     * Gets the row and column from row r and column c.
     * 
     * Bounds are NOT checked. This is because nextPosFrom should only be
     * called in internal methods, which we assume are called correctly. An
     * incorrect nextPosFrom call should then crash early and hard.
     * 
     * @param r
     *        the row
     * @param c
     *        the column
     * @return the row and column pair 
     */
Gets the row and column from row r and column c.

Bounds are NOT checked. This is because nextPosFrom should only be
called in internal methods, which we assume are called correctly. An
incorrect nextPosFrom call should then crash early and hard.

@param r
the row
@param c
the column
@return the row and column pair
Gets the row and column from row r and column c . Bounds are NOT checked . This is because nextPosFrom should only be called in internal methods which we assume are called correctly . An incorrect nextPosFrom call should then crash early and hard . @param r the row @param c the column @return the row and column pair
private int[] nextPosFrom(int r, int c) {
        int[] pos = new int[2];
        if ((c + 1) == getDimension()) {
            pos[0] = r + 1;
            pos[1] = 0;
        } else {
            pos[0] = r;
            pos[1] = c + 1;
        }
        return pos;
    }
private int [ ] nextPosFrom ( int r , int c ) { int [ ] pos = new int [ 2 ] ; if ( ( c + 1 ) == getDimension ( ) ) { pos [ 0 ] = r + 1 ; pos [ 1 ] = 0 ; } else { pos [ 0 ] = r ; pos [ 1 ] = c + 1 ; } return pos ; }
Gets the row and column from row r and column c.
Gets the row and column from row r and column c .