Removes excess space from the list, ensuring that the capacity of the list is equal to the number of items.
public void trimToSize()