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
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: 1225
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: 2902
    
    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 !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: size of the list