How to get the capacity of the ArrayList in Java?

Posted by JavaUser on Stack Overflow See other posts from Stack Overflow or by JavaUser
Published on 2010-03-23T01:56:49Z Indexed on 2010/03/23 2:01 UTC
Read the original article Hit count: 642

Filed under:

Hi, Its known that Java ArrayList is implemented using arrays and initializes with capacity of 10 and increases its size by 50% . How to get the current ArrayList capacity not the Size of the ArrayList.

Thx

© Stack Overflow or respective owner

Related posts about java