Java Reference
In-Depth Information
Figure 1-17.
7.
Save EmployeeApp by clicking on the floppy-disk icon.
8.
Click the Run button. The text “Howdy from EmployeeApp” will be displayed in the
Console view.
After an application has been run (besides becoming the default application to run), the application is also
added to a list of “applications to run.” Instead of re-specifying an application to run, it can be selected from this list.
9.
Click the black arrowhead to the right of the Run button to display the “applications
to run” list.
EmployeeApp should be displayed at the top of the drop down menu. The application at the top is the default
application to run. However, any application can be selected and run from the list by simply clicking it.
Tutorial: Breaking the Code
Many engineering disciplines use destructive testing to understand how a product or design will function. For instance,
automobile manufacturers crash cars in walls to improve design and safety features. Programmers can do the same
with Java code. Removing pieces of code will help you understand what function the code performs. In addition,
producing errors highlights common programming mistakes and their associated error messages. Hopefully,
by producing the errors now, you will recognize them sooner and fix them faster when you make them later.
1.
In EmployeeApp, change the name of the main method to Main (capital M).
2.
Click the Run drop down button and select the EmployeeApp configuration. Notice that
RAD prompts you to save the EmployeeApp source code.
 
Search WWH ::




Custom Search