public E peekForward(){
  int nextPos=(pos + 1) % size;
  if (nextPos >= data.size() || pos == end) {
    return null;
  }
  return data.get(nextPos);
}

public E peekForward ( ) { int nextPos = ( pos + 1 ) % size ; if ( nextPos >= data . size ( ) || pos == end ) { return null ; } return data . get ( nextPos ) ; }
return the next element ( if present ) , without moving the position in the history .
