# | Line 177 | Line 177 | public class ArrayList<E> extends Abstra | |
---|---|---|
177 | * | |
178 | * @param minCapacity the desired minimum capacity | |
179 | */ | |
180 | – | /** |
181 | – | * Increases the capacity of this <tt>ArrayList</tt> instance, if |
182 | – | * necessary, to ensure that it can hold at least the number of elements |
183 | – | * specified by the minimum capacity argument. |
184 | – | * |
185 | – | * @param minCapacity the desired minimum capacity |
186 | – | */ |
180 | public void ensureCapacity(int minCapacity) { | |
181 | modCount++; | |
182 | if (minCapacity > elementData.length) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |