AP Computer Science Aeasymcq1 pt
The method list.remove(0) does what?
A.removes the element at index 0 and shifts the rest left
B.removes the element equal to 0
C.replaces index 0 with 0
D.clears the whole list
remove deletes the indexed slot.
Aremoves the element at index 0 and shifts the rest left
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →