Business web hosting - 50 Part I: Getting Started To see the

50 Part I: Getting Started To see the code of Listing 3-1 in the JCreator work area, follow these steps: 1. Open the Chapter03 workspace and, within that workspace, make Listing0301 the active project. (See Chapter 2 for details.) In the File View pane s tree, the name Listing0301is set in boldface. Under Listing0301, you see a branch labeled Displayer.java. 2. Double-click the Displayer.java branch in the File View pane s tree. JCreator s Editor pane appears on the right side of the work area. The Editor pane contains the code in Listing 3-1. After following the first step, you can run the code in Listing 3-1 by choosing Build.Compile Project, and then choosing Build.Execute Project. (See Chapter 2 for details.) When you run the program from Listing 3-1, the computer displays You ll love Java!(See Figure 3-1.) Now, I admit that writing and running a Java program is a lot of work just to get You ll love Java!to appear on somebody s computer screen, but every endeavor has to start somewhere. Figure 3-1: Running the program in Listing 3-1. After following this section s steps, you may see a lot more than just You ll love Java!in JCreator s General Output pane. The General Output pane may display previous runs (runs of some examples from Chapter 2) in addition to this most recent Displayer.javarun. To dispose of previous runs, start right-clicking the General Output pane. Then, in the resulting context menu, select Clear. In the following section, you do more than just run the program and admire the program s output. After you read the following section, you actually understand what makes the program in Listing 3-1 work. Understanding a Simple Java Program This section presents, explains, analyzes, dissects, and otherwise demystifies the Java program shown previously in Listing 3-1.
Please check our cheap domain web hosting services, our secret is fast and stable servers, dedicated 24/7 customer support, and many useful FREE bonuses.

Leave a Reply