ArrayList trimToSize() method in Java
The trimToSize() method is used to trim the capacity of an ArrayList to its current size. In this post, we are going to discuss the trimToSize() method in detail. Method declaration – public void trimToSize() What does it do? It is used to trim the capacity of an ArrayList to its current size. So, after […]
ArrayList trimToSize() method in Java Read More »
