Suppose you are given a text file that contains the names of people. Every name in the file consists of a first name and last name. Unfortunately, the programmer that created the file of names had a strange sense of humor and did not guarantee that each name was on a single line of the file. Read this file of names and write them to a new text file, one name per line. For example, if the input file contains
Bob Jones Fred
Charles Ed
Marston
Jeff
Williams
the output file should be
Bob Jones
Fred Charles
Ed Marston
Jeff Williams
See the code in RecoverNames.java.
Computer Science & Information Technology
You might also like to view...
A(n) ________ occurs when the value of one field is determined by the value of another
A) functional dependency B) composite key C) non-key field D) primary key
Computer Science & Information Technology
What is a user agent? Give some examples. What purpose does it serve in enhancing Web accessibility?
What will be an ideal response?
Computer Science & Information Technology