Flow Chart of the Program

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
go to previous page   go to home page   go to next page        

Answer:

No. Most word processing files use their own format, which is not understood by a Reader that is expecting UTF characters.

Flow Chart of the Program

The general design of the program is given in the flowchart. Of course, many details are left out. The purpose of the chart is to show the overall logic.

The box "Read a line of source" appears in two places—before the loop gets started and in the body of the loop. Study the logic to see that this is correct.

QUESTION 8:

Will this logic correctly copy an empty file (a file that exists, but returns end-of-file immediately)?