// Textbook fragment 06.A.05 List values; // ... statements that create a new values list and fill it with Integers... int sum = 0; for (Integer i : values) sum += i; // unboxing allows this