AP Computer Science Aeasymcq1 pt
Which statement accesses the first element of list?
A.list.get(0)
B.list.get(1)
C.list.get(list.size())
D.list.get(-1)
The first index is 0.
Alist.get(0)
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →