src/java.base/share/classes/java/util/ArrayDeque.java
changeset 50959 f9b96afb7c5e
parent 49565 b5705ade8c8d
child 52427 3c6aa484536c
equal deleted inserted replaced
50958:e0028bb6dd3d 50959:f9b96afb7c5e
   178     /**
   178     /**
   179      * Constructs an empty array deque with an initial capacity
   179      * Constructs an empty array deque with an initial capacity
   180      * sufficient to hold 16 elements.
   180      * sufficient to hold 16 elements.
   181      */
   181      */
   182     public ArrayDeque() {
   182     public ArrayDeque() {
   183         elements = new Object[16];
   183         elements = new Object[16 + 1];
   184     }
   184     }
   185 
   185 
   186     /**
   186     /**
   187      * Constructs an empty array deque with an initial capacity
   187      * Constructs an empty array deque with an initial capacity
   188      * sufficient to hold the specified number of elements.
   188      * sufficient to hold the specified number of elements.