size() Method : Java.util.ArrayList

   

Declaration :

Explanation :

Purpose Method returns the size of ArrayList
Parameters NA
Return Value Number of elements in this list
Exception NA

Example

The following example shows the usage of java.util.Arraylist.size() method.

Output :