7.7 Exercise 6: Average value from input file
Write a Java application that does the following:
Accepts a file name of a text file as a command-line arguments
Reads a series of numbers from the text file and calculates the average of these numbers
Displays the average on the screen.
The text file will consist of a series of lines. Each line contains one number. An example of the file is shown below:
1 10.23 10000 200.78 9887765 3456.8889 23