public E peek(){
  if (isEmpty()) {
    return null;
  }
  return elements[0];
}

public E peek ( ) { if ( isEmpty ( ) ) { return null ; } return elements [ 0 ] ; }
gets but does not remove the head of the queue .
