equal
deleted
inserted
replaced
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. |