@@ -0,0 +1,1025 @@
+import java.util.ArrayList;%0Apublic class Problem1 %7B%0A   %0A    %0A    public static void main(String%5B%5D args)%7B%0A        %0A        // Initialize a new ArrayList using Java's built in ArrayList Library.%0A        ArrayList listOfNumbers = new ArrayList%3C%3E();%0A        %0A        // Create sum variable to hold final answer.%0A        int sum = 0;%0A        %0A        // Loop through all numbers 0 through 1000, pick out numbers that are divisible by 3 or 5 using %25 modulo.%0A        // If divisible by 3 or 5, add to ArrayList to use later%0A        %0A        for (int i = 0; i %3C 1000; i++) %7B%0A            if((i %25 3 ==0) %7C%7C (i %25 5 == 0))%0A            %7B%0A                listOfNumbers.add(i);%0A            %7D%0A        %7D%0A        %0A        // Second loop, go through the list that we generated of numbers that are divisible by 3 or 5 and sum all up.%0A        for (int i = 0; i %3C listOfNumbers.size(); i++) %7B%0A            sum += (int) listOfNumbers.get(i);%0A        %7D%0A        %0A        // Display final sum.%0A        System.out.println(%22Sum is %22 + sum);%0A    %7D%0A    %0A%7D%0A

Create Problem1.java