Answer:
list1.size()
Step-by-step explanation:
In order to find the number of elements in a List , we can use the size() method defined in the java.util.List interface.
This method returns an integer which corresponds to the number of elements in the list.
The usage syntax example is as follows:
int num = list1.size();
If the list referenced by list1 contains 6 elements, then this method will return the value 6.