How to find the length of an array list? [duplicate]

The size member function.

myList.size();

http://docs.oracle.com/javase/6/docs/api/java/util/ArrayList.html

Leave a Comment