Creating a Sample Program
Now that you have installed and set up the Java Development Kit, you're ready to create a sample Java program to make sure that it works.
Java programs begin as source code—a series of statements created using a text editor and saved as a text file. You can use any program you like to create these files, as long as it can save the file as plain, unformatted text.
The Java Development Kit does not include a text editor, but most other Java development tools include a built-in editor for creating source code files.
Run your editor of choice and enter the Java program in Listing A.1. Make sure all the parentheses, braces, and quotation marks in the listing are entered correctly and capitalize everything in the program exactly ...