Menu

#2 add size() method to collections

v1.0
open
collections (1)
5
2007-08-14
2007-08-14
eye_of_back
No

There is a method in collections of J2SE1.4 as follows:
public int size();
examples :
List a = new ArrayList();
System.out.println("size:"+a.size());

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.