Accepted Answer
A program that takes the list of numbers and uses a loop to find the sum of all of the odd numbers in the list is given below:The Programimport java.util.*;public class Main{public static void main(String[] args) { //create a list with some numbers List<Integer> lotsOfNumbers = Arrays.asList(7, 20, 1002, 55, 406, 99); //initialize the sum as 0 int sumOfOdds = 0; //create a for each loop to iterate over the lotsOfNumbers list //check each number, if it is odd or not using the mod //if it is odd, add the number to the sum (cumulative sum) for (int number : lotsOfNumbers){ if(number % 2 == 1) sumOfOdds += number; } //print the sum System.out.println("The sum of odd numbers: " + sumOfOdds);}}Read more about programming here:https://brainly.com/question/19054224#SPJ1