AP Computer Science Aeasymcq1 pt
The method list.set(0, 9) does what?
A.replaces the element at index 0 with 9
B.inserts 9 before index 0
C.appends 9 at the end
D.returns index 9
set overwrites the indexed slot.
Areplaces the element at index 0 with 9
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →