Create a program in which you’ll create a list of 1000 randomly generated numbers that have values between 1 and 1000.
Using this list, complete the following calculations (using methods):
1) Calculate the average using the calculateAverage(ArrayList<Integer> numbers)
method. Use a double to store the average. What happens if you use an int?
2) Find the highest value of the list. (findMax(...)
)
3) Find the lowest value of the list. (findMin(...)
)
Note that you don’t have to print the list of numbers. This will be covered in a different assignment. So just the results will do.