Possible Duplicate: How to get the capacity of the ArrayList in Java? How to find the capacity of an ArrayList?