Fixing Errors

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.

Answer:

To fix the error, use Notepad to fix the source file.

Fixing Errors

Usually you will have two windows open on your computer: one for Notepad (or other editor) and one for the command interpreter.

To fix the syntax error, change the "C" to a "c" and save the file. Now use javac to compile the source file, and if there are no errors, use java to run it.

QUESTION 7:

If you forget to save the file after making the change, and then enter the command javac Hello.java, what will happen?