AverageWordLength

Write a class AverageWordLength.java with a single main method that calculates the average length of all of the words in this external file and prints that value out.

To do this, the program will need to:

  1. read the lines in from the text file
  2. split each line into individual words
  3. perform calculations to identify the average length of all the words in the file

Sample output

The average word length of these 4003 words is 6.5679343