Lab Exercises - Stats for Java
Run a "Hello World" program.
Our hello world program is a java program that writes the words "Hello World" to the standard system console.
On Mac OSX:
- Open xCode and select "New Project..." from the File Menu. Choose the stationary for a "Java Tool" from the "Java" List and click "next". Name the Project "Hello World". If you have problems with this step you can download the compressed xCode project here.
- Open the "Console" from the "Run" menu. Click on the "Build and Go" button to compile the code and run it. You should see "Hello World" printed into the Console by the program.
- The Java code for this program is in the "Hello_World.java" file which is located in the "src" folder of the project. Change the letters between the quotation marks from Hello World! to something else and rerun.
last modified: 01/23/08