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

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

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?

ベストアンサー1

おすすめ記事