Code example for Deque

Methods: size

0
    public E pop() { 
        return deque.pollLast();
    } 
 
    public int size() { 
        return deque.size();
    } 
 
 
}