In the browser window (this window), put the mouse pointer on the "c" of "class".
Push down on the left mouse button,
then drag down until the final "}"
of the program is covered.
Lift up on the mouse button.
Click on the "Edit" menu of the browser and then click on "Copy".
This makes a copy of the program in the clipboard,
a section of the computer's main memory.
PASTE: Click inside the Notepad window to make it active.
Go to its "Edit" menu and click on "paste."
You should now have have a copy of the program in Notepad.
SAVE: Click on the "File" menu of Notepad and "Save As" HelloPlanets.java.
You will have to "navigate" to the subdirectory you wish to use.
Start up a DOS window.
In the DOS window, use the CD command to go to the subdirectory that holds the file.
In this example, C:\Temp will be used.
RUN: Run the program:
In the DOS window.
Do a DIR to check that HelloPlanets.java is there.
Compile the program: C:\Temp> javac HelloPlanets.java