Aug 24, 2017 · 1 min read
Also important is to know this constructor for ArrayList:
ArrayList(int initialCapacity)
I have seen a lot of code where an ArrayList is used to contain a fixed number of elements yet the list is not initialized with that exact capacity.
