Removing Elements from Deque
suggest change//Retrieves and removes the head of the queue represented by this deque
Object headItem = deque.remove();
//Retrieves and removes the first element of this deque.
Object firstItem = deque.removeFirst();
//Retrieves and removes the last element of this deque.
Object lastItem = deque.removeLast();
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents