Code example for ArrayDeque

Methods: iterator

0
        deque = new ArrayDeque<Double>(size);
    } 
 
    public Iterator<Double> iterator()
    { 
        return deque.iterator();
    } 
 
    public int size() 
    { 
        return deque.size();
    } 
 
    public void clear() 
    { 
        deque.clear();
    } 
 
    public void add(double o)
    { 
        if (size == deque.size())