You will compile the old, uncorrected version
of the source file and get the same error message.
When you are using Notepad (or any other text editor) you are changing
the version of the source program that is in main memory.
The compiler javac
uses the
file that is saved on the hard disk.
This is what you will do until your program is running correctly:
javac
command.java
command.This is called the "edit-compile-and-run" cycle. Expect to go through it many times per program. A Java development environment like Symantec Café is more sophisticated but the same fundamental activities are going on underneath.