previous | start | next

Answers

  1. 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.
  2. The program catches a FileNotFoundException, prints an error message, and terminates.


previous | start | next