What will be the output of the following code? ``` ArrayList<Integer> list = new ArrayList<>(); list.add(5); list.add(7); list.add(9); list.add(11); list.add(13); System.out.println(list.size()); ```




© 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.