How to squeeze more performance out of ArrayLists

In this post we will discuss how to improve the performance of Java programs that utilize ArrayLists by setting the list’s initial capacity.   ArrayLists and lists in general are great data structures for storing data. They are convenient for when we don’t know how large our data set. However, this comes with a performance […]