aspose file tools
The moose likes Beginning Java and the fly likes size of the list Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "size of the list" Watch "size of the list" New topic
Author

size of the list

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1239
can anyone tell me the method to get the size of the ArrayList?
i tried countItems() but eclips IDE gives error when i type that method
Anurag Blore
Ranch Hand

Joined: Jan 15, 2003
Posts: 74
ArrayList a = new ArrayList();
a.size();//this will print the size of Array list a.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2904
    
    1

aruna sameera wrote:can anyone tell me the method to get the size of the ArrayList?

Asked Java Docs, If he can helps you !!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: size of the list