Get element at index 2 of an ArrayList:
- Acheck_circle
list.get(2)
- B
list.at(2)
- C
list[2]
- D
list.element(2)
Explanation
ArrayList uses methods, not bracket notation.
AP Computer Science A· difficulty 2/5
Get element at index 2 of an ArrayList:
list.get(2)
list.at(2)
list[2]
list.element(2)
Explanation
ArrayList uses methods, not bracket notation.
Want 10 more like this — adaptive to your weak spots?