The first part of my assignment was to write a file (which I have done) with a matrix of information (First name, last name, gender, age, dependents and SIN/SSN).
Check to see if the file exist and if it has parent directory names as follow:
The last part of my assignment is:
Write a program to:
a. Read in the file one line at a time into a
string using readLine and display them in DOS window.
b. Using StringTokenizer break up the string into separate fields in arrays as follows: first, last, gender, age, dependents and sin.
c. Print a report in a DOS window that lists all First Names, Last Names and SIN numbers by last name.
I think I got a. right but b. and c. are giving me trouble. Here's what I have so far:
Any advice as to what I am doing wrong?
Thanks