Retrieving Element without Removing

suggest change
//Retrieves, but does not remove, the head of the queue represented by this deque
Object headItem = deque.element();

//Retrieves, but does not remove, the first element of this deque.
Object firstItem = deque.getFirst();

//Retrieves, but does not remove, the last element of this deque.    
Object lastItem  = deque.getLast();

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents