int () { int total = 0; final List ints = new ArrayList(); Iterator<Integer> iterator = ints.iterator(); while (iterator.hasNext()) { total += iterator.next(); } System.out.println("iterator: " + iterator); // read use here return total; }