Title Nov 30, 2022 • 1 min read //Hack 3 // find the sum of the elements in the arraylist ArrayList<Integer> num = new ArrayList<Integer>(); num.add(5); num.add(1); num.add(3); int value; for (int i : num) { value +=i; } System.out.println(value); 9