// Textbook fragment 06.A.05 int[] v = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; int total = 0; for (int i : v) total += i;