capacity
How many elements an ArrayList's internal array can hold before it must grow.
Starts at 10 and grows by half when full; new ArrayList<>(n) sets the initial capacity, not the size.
See also
How many elements an ArrayList's internal array can hold before it must grow.
Starts at 10 and grows by half when full; new ArrayList<>(n) sets the initial capacity, not the size.
See also