Using a text editor or word processor, create a text file holding a series of surnames and

Question:

Using a text editor or word processor, create a text file holding a series of surnames and payroll numbers (at least five of each). For example:

Smith 123456 Jones 987654 Jenkins 555555

Now write a Java program that uses a while loop to read values from the above text file and displays then in a table under the headings ‘Surname’ and ‘Payroll No.’. (Don’t be too concerned about precise alignment of the columns.). 

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: