public abstract E pop ()

Pops an element from the stack represented by this deque. In other words, removes and returns the first element of this deque.

This method is equivalent to removeFirst().

Returns:  the element at the front of this deque (which is the top of the stack represented by this deque)

Exceptions:
NoSuchElementException    if this deque is empty