AP Computer Science Aeasymcq1 pt
The method list.add(5) on an Integer list
A.appends 5 to the end of the list
B.adds 5 at index 5
C.replaces index 5
D.returns index 5
add appends the element.
Aappends 5 to the end of the list
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →