proj/proj1b/ArrayDeque.java
private int rmpointerLast(int nextLast) {
        if (nextLast != 0) {
            // move Last pointer forward
            nextLast -= 1;
        } else {
            // move First pointer to the end of Array.
            nextLast = Array.length - 1;
        }
        return nextLast;
    }
/**  private helper function.
     *
     *   move Last pointer when removing element.
     * */
private helper function.
move Last pointer when removing element.
private helper function . move Last pointer when removing element .
private int rmpointerLast(int nextLast) {
        if (nextLast != 0) {
            nextLast -= 1;
        } else {
            nextLast = Array.length - 1;
        }
        return nextLast;
    }
private int rmpointerLast ( int nextLast ) { if ( nextLast != 0 ) { nextLast -= 1 ; } else { nextLast = Array . length - 1 ; } return nextLast ; }
private helper function.
private helper function .
// move Last pointer forward // move First pointer to the end of Array.