int () { int total = 0; final List ints = new ArrayList(); <warning descr="'for' loop can be replaced with enhanced 'for'">for</warning>(Iterator iterator = ints.iterator(); iterator.hasNext();){ final Integer value = (Integer) iterator.next(); total += value.intValue(); } return total; }