Lab 1: Your First Java Program
In this lab you will create, compile and run a simple program to display text strings.
- Copy the Hello.java program from lecture 1.
- Paste into a text editor like kedit or kate.
- Open a shell prompt.
- Compile the program by typing
javac Hello.java
.
- Run the program by typing
java Hello
.
- Send the source code to the
instructor as an attachment with subject java lab1.