Fiveable
Fiveable

What will be the output of the following code? ``` ArrayList<Integer> list = new ArrayList<>(); list.add(3); list.add(6); list.add(9); list.add(12); list.add(15); System.out.println(list.get(2)); ```




© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.