How to find the length of an array list?

user1254044 picture user1254044 · Mar 11, 2012 · Viewed 580.9k times · Source

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?

Answer

Adam Reed picture Adam Reed · Mar 11, 2012