How to find the length of an array list?

arraylist, java

Solution

The size member function.

myList.size();

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

Problem

I don't know how to find the length of an array list. I think you might need to use `blank.length();` but I'm not sure. I made an array list ``` ArrayList<String> myList = new ArrayList<String>(); ``` but how do I write code to print out the size of myList?

Original source

Related problems