Saturday, March 12, 2005

The HelloWorld Application

Program

The HelloWorld application is a typical "first program" printed in most text books:

class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}

Output

When you compile and run this program, it will print:

Hello World!

No comments: