(g) Enter the following highlighted Java code exactly as it appears in the
main method as shown below:
If you make any syntax errors, you will see a red X appear to the left of
the line with the error. Click on the X to get more info about the error if
you need help.
For example, if you leave the quotation marks out from the code above,
you will see something like this:
(h) Periodically, save your work using File > Save or Command+s.
(i) If your Java program requires more than one class, you can add additional
classes to your project, repeating the instructions of this step.
(j) When you are ready to run your program, continue with step 7.
6. If you are creating a project using Java files that are already stored in a
folder for you (for example, the folder is named MySecondProgram):
(a) IMPORTANT: Make sure the folder with the Java files is stored inside
your MyWorkspace folder before you go on to the following steps.
(b) In the New Java Project window, enter the name of the same folder as the
Project Name. (A message will appear as you are typing that the project will
be based on the existing source.)
(c) Click Finish. (See pictures on next page.)
If you are starting
a Java project
from scratch, go
back to Step 4.
This line is an
automatically-
generated comment.
You may erase this
line if you wish.