Code example for Deque

Methods: clear

0
 
  /** 
   * Throws the plan into the trash bin. 
   */ 
  public void clear() { 
    plan.clear();
  } 
 
  public int size() { 
    return plan.size();
  } 
 
  public boolean isEmpty() { 
    return size() == 0; 
  } 
 
}