Pages

Wednesday, May 25, 2011

Hello World Program!!!!!!

This is my first Java program. This program prints "Hello...World" in the console.

import acm.program.*;
public class jav extends ConsoleProgram
{
public void run()
{
println("Hello...World");
}
}

1 comment:

  1. I'm doing the CS106a on iTunes U and I can't seem to do the hello world program in chapter 2 of the book exactly how it is published. I can get it to work by other mean i.e. System.out.println etc but I want to learn as per the book and I can't find any information why my eclipse won't let me do it. As far as I'm aware, I e downloaded all the right stuff.

    Not sure whether the course on iTunes U is out of date(I've started doing it since the arrival of the new iTunes U app).

    Any comments will be much appreciated

    ReplyDelete