AP Computer Science Amediummcq1 pt
After list.add(1); list.add(3); list.add(1, 2), the list is
A.1, 2, 3
B.1, 3, 2
C.2, 1, 3
D.1, 2
2 inserts at index 1 shifting 3.
A1, 2, 3
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →