Introduction to Java

Traditionally, the first program you write is to display the words "Hello World".

This the simplest program you can write: no variables, no input, no calculations, etc.

The hard part is find a compiler, install it, figure out how to start the program, and how to run it.

1
2
3
4
5
6
7
8
// your name
// my first program
package helloworld;
public class Hello {
	public static void main(String[] args) {
		System.out.println("Hello World");
	}//main
}//package
CODE

NEXT: Debugging: Finding errors