-
Create a class
Stats2
. In it, rewrite the data-entry code from assignment 1, using an ArrayList to store the data instead of an array. You should not limit the user to a particular number of data points. Again, you can have the user enter -1000 to mark the end of input.You will have to use the
Double
wrapper class to store the values in the ArrayList. - In the same class, add code to print out the mean (arithmetic average) of the value in the ArrayList. You don't need to create a menu, or calculate any of the other statistics from assignment 1.
-
Create a text file named
time.txt
. In it, indicate how long it took you to complete this lab exercise.
When you're done, create a ZIP file containing all of the files you created for this lab and submit it with the submission server.