blog posts

databases (1) django (1) drupal (2) java (4) processing (7) wamp (1) yahoo pipes (1)

Wednesday, 12 January 2011

java programing intro

In this introduction i am going to teach you how to tell the world that you exist.


Since this is a basic tutorial i am going to write some code that you might not first understand.


class ham
{

public static void main(String [] args)
{

System.out.println("hello world")
}


}

Lets take a real world anaology. Lets think of a class as our clickboard and on this clipboard is pad of paper. The pad of paper in java term is called a main method and this is where java look first when excuting the code. To continue are anology on our piece paper there is a a message writen on it that says hello world. So when the program is run the words hello world are printed to the screen. The method that java uses to print is System.out.println. This basically means print what ever is inside the brackets. in our case we are using a string. This is basically characters from the alphabet.

I hope you found this useful.

No comments:

Post a Comment

Popular Posts