AP Computer Science Amediummcq1 pt
Which method returns true when the list has no elements?
A.list.isEmpty()
B.list.size()
C.list.contains(null)
D.list.clear()
isEmpty tests for zero elements.
Alist.isEmpty()
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →