|
by 
[Help |
API Docs |
Short Course|
Exercises]
For this exercise you compile and run the first Java application from the course notes, SimpleProgram.java.
There are many different Java development environments, so the exact steps required will be somewhat different across Java IDEs.
Prerequisites
Skeleton Code
Tasks
Copy and paste the code for SimpleProgram from the course notes into a file (or use the SimpleProgram.java file above) in a working directory where you will develop programs for this course.
Compile the Java source file SimpleProgram.java.
Execute SimpleProgram.
Where help exists, the task numbers above are linked to the step-by-step help page.
Solution Source
Demonstration
If you execute SimpleProgram from a command line, the output should be similar to the
following:
C:\>java SimpleProgram
This is a simple program.
If you execute SimpleProgram from a Java IDE, the output should be similar to the following:
That is, there should be a dialog box that displays program output. This window is from VisualAge for Java.
Copyright 1996-2000 jGuru.com. All Rights Reserved.
|