super();
double total = 0; for (Iterator<N> i = contents.iterator(); i.hasNext(); ) { total = total + i.next().doubleValue(); } return total;
double total = 0; for (Iterator<A> i = box1.contents.iterator(); i.hasNext(); ) { total = total + i.next().doubleValue(); } for (Iterator<A> i = box2.contents.iterator(); i.hasNext(); ) { total = total + i.next().doubleValue(); } return total;