AP Computer Science Amediummcq1 pt
The method list.clear() does what?
A.removes every element
B.removes the first element
C.returns the list size
D.sorts the list
clear empties the list.
Aremoves every element
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →