How to find length/size of ArrayList in Java? Example | Java67
You can use the size() method of java.util.ArrayList to find the length or size of ArrayList in Java. The size() method returns an integer equal to a number of elements present in the array list. It's different than the length of the array which is backing the ArrayList, that is called the capacity of ArrayList.When you create an object of ArrayList in Java without specifying a capacity, it is ...
DA: 81 PA: 64 MOZ Rank: 93