please help me create a simple program that can input number from 1 to n. and display the numbers which input by the user and also display the sum and average of it.
Please input a number:
1 2 3 4 5 6 7 8 9 10
So for each double you read in with the Scanner you need to keep a record of this in some sort of List structure. Then when you come to print out the results you can include each element in that List in the output.