Java Reference
In-Depth Information
This statement will display the text “Howdy.” Why and how this statement works is beyond your understanding
right now. Accept the fact that there is a class called System that contains a wonderful object called out . The out
object has a nice method called println that will display anything passed to it. This statement passes the simple text
“Howdy” to the println method, and println displays the text.
The code should look like Figure 1-15 .
Figure 1-15.
Notice the asterisk, to the left of the text EmployeeApp.java in the tab at the top of the content pane. This means
that there are unsaved changes in the code.
4.
Save the code by clicking File and then Save. (You can also click the floppy-disk icon on the
tool bar.) Notice that the asterisk is no longer there.
Tutorial: Running an Application in RAD
This application simply prints out the text “”Howdy””. Within RAD, the Console view displays text and system
messages. The Java perspective does not offer the Console view in any of its panes; however, perspectives can be
customized by adding or deleting views.
1.
Add the Console view by clicking Window, Show View, and then Console. The Console
view will replace the Problem view in the Task pane at the bottom of the Java perspective
window. Did you notice all the views that were listed when you clicked Show View? We
will explore other views in later chapters and demonstrate many of RAD's very useful tools
offered in these views.
2.
On the Menu bar, click Run, and then Run Configurations.... The Run Configurations
window will be displayed.
3.
Select Java Application and then click the New button (see Figure 1-16 ).
 
Search WWH ::




Custom Search