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

Explanation

Core Concept

contains tests membership.

Correct Answer

Atrue if 5 is in the list

More Unit 7: ArrayList practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 7: ArrayList Questions →