Wednesday, December 22, 2010

Programming with Java. The Basic "Hello World".

Hi dudes. i'm addressing this tutorial to the newbies in java programming. I'm talking about the one's who are not yet been using java in their entire life.

Alright. If you are new to Java, probably you don't have any compiler yet. First thing you have to do is to have in your machine a jcreator pro and the java jdk.

you can have the latest JDK @ http://java.com/en/

just try to look for it within that site.

and the JCREATOR PRO, you can have it by browsing @ google.com just look for it on google.

Here is how to display a text in Java.

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

}

In Jcreator pro, click compile and then click run or press F5 to run

The output would be.
-----------------------
Hello world.

Press any key to continue....

-----------------------


Ok that's it for this time. thanks alot.

 any comments would be highly appreciated.



No comments:

Post a Comment