processData

Category: Token-Based File Processing
Author: Stuart Reges
Book Chapter: 6.2
Problem: processData
Write a static method processData that takes a
   Scanner holding a sequence of words and that reports the total number of
   words and the average word length.  For example, suppose the Scanner
   contains the following words.

        To be or not to be, that is the question.
	
   For the purposes of this problem, we will use whitespace to separate words.
   That means that some words include punctuation, as in "be,".  This is the
   same definition that the Scanner uses for tokens.

   For the input above, your method should produce the following output.

        Total words    = 10
        Average length = 3.2

   You are to exactly reproduce the format of this output.

   Write your solution to processData below.