AP Computer Science Aeasymcq1 pt
The method list.size() returns
A.the number of elements in the list
B.the capacity of the list
C.the last index
D.the first element
size counts current elements.
Athe number of elements in the list
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →