public E element(){
  E o=peek();
  if (null == o) {
    throw new NoSuchElementException();
  }
  return o;
}

public E element ( ) { E o = peek ( ) ; if ( null == o ) { throw new NoSuchElementException ( ) ; } return o ; }
returns but does not remove the element at the head of the queue .
