Pop() Method : Java.util.ArrayDeque

   

Declaration :

Explanation :

Purpose The java.util.ArrayDeque.pop() method pops an element from the stack represented by this deque.
Parameters NA
Return Value This method returns the element at the front of this deque.
Exception NoSuchElementException — if this deque is empty.

Java Program : Example

Below example will explain java.util.ArrayDeque.pop() method.

Output of Program :