This program demonstrates how to use a StringTokenizer class
that breaks a line of text and store it as tokens.
If you decided not to use a StringTokenizer, you can read
from a csv file and use the split method of String or
the java.util.regex package instead.
I would recommend reading from a csv file using
the pattern to extract the word.
Example:
A data file "data.txt" contains this line:
John Smith 111 30.00 35.0
A csv file "data.cvs" may contain data like this:
John,Smith,111,30.00,35.0
We have a class Employee that stores "employeeName", "idNumber",
"hourlyRate", and "hoursWorked".
To do this:
1. Read the content of the file and store it into a variable of type Scanner.
2. Make a method that returns an Employee and takes an argument of type Scanner.
3. Process the scanned contents and store them into the Employee object.