View Single Post
  #8 (permalink)  
Old 12-05-2007, 07:06 PM
wsaryada wsaryada is offline
Senior Member
 
Join Date: Jun 2007
Location: Bali, ID
Posts: 102
wsaryada is on a distinguished road
Of course you can change the initial capacity of ArrayList. When creating the array list just pass the initial capacity you want in the constructor.

Code:
List list = new ArrayList(20);
This constructor will set the initial capacity of your array list to 20.
__________________
Website:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Blog:
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote