AP Computer Science Amediummcq1 pt
The method list.contains(5) returns
A.true if 5 is in the list
B.the index of 5
C.the count of 5s
D.the list size
contains tests membership.
Atrue if 5 is in the list
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →