Write the following method that returns the sum of all numbers in an ArrayList: public static double

Question:

Write the following method that returns the sum of all numbers in an ArrayList:
public static double sum(ArrayList list)
Write a test program that prompts the user to enter 5 numbers, stores them in an array list, and displays their sum.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: