The trimToSize() method of java.util.ArrayList class trims the capacity of this ArrayList instance to be the list’s current size. An application can use this operation to minimize the storage of an ArrayList instance. [Read more…]
javainterviewpoint.com is a tech blog dedicated to all Java/J2EE developers and Web Developers.
We publish useful tutorials on Java, J2EE and all latest frameworks.
All examples and tutorials posted here are very well tested in our development environment.