Code example for Queue

Methods: element

0
  public E peek() { 
    return delegate().peek();
  } 
 
  public E element() { 
    return delegate().element();
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java