Page 1 of 1

What will output when this code is run? ArrayList coll=new ArrayList<>(); coll.add(65); coll.add(65); coll.add(

Posted: Sat May 14, 2022 8:16 pm
by answerhappygod
What Will Output When This Code Is Run Arraylist Integer Coll New Arraylist Coll Add 65 Coll Add 65 Coll Add 1
What Will Output When This Code Is Run Arraylist Integer Coll New Arraylist Coll Add 65 Coll Add 65 Coll Add 1 (24.28 KiB) Viewed 58 times
What will output when this code is run? ArrayList<Integer> coll=new ArrayList<>(); coll.add(65); coll.add(65); coll.add(-65); System.out.println( coll.size()); A [-65,65] B [65, 65, -65] C 3 2 E 0