public char peek(){
  return isEmpty() ? 0 : queue.charAt(pos);
}

public char peek ( ) { return isEmpty ( ) ? 0 : queue . charAt ( pos ) ; }
retrieves but does not remove the first character from the queue .
