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