Code example for Deque

Methods: size

0
  public void clear() { 
    plan.clear();
  } 
 
  public int size() { 
    return plan.size();
  } 
 
  public boolean isEmpty() { 
    return size() == 0; 
  } 
 
}