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());
Log in to post a comment.