Answers
- When the PrintWriter object is created, the output file is emptied. Sadly, that is
the same file as the input file. The input file is now empty and the while loop
exits immediately.
- The program catches a FileNotFoundException, prints an error message, and
terminates.