blog posts

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

Wednesday, 19 January 2011

configure blue j

Blue J is a very clever program for java. It is very good in the teaching of object orientated programming.

1. download bluej
2. install it
3. To setup a blue j project go to new project

you will given a path to create your directory.
4. Once you have decided where you would like your project. Click Create
5. Now you will have a window like this

when you click new class a new menu will appear don't change any of the option just type into the textbook
Hello01.
6. Now you should have a similar image to what i have displayed below

You have created your first class.. 7 Now double click on the orange box with shading a code window will appear.

 There is default code already in the window. 8 Remove all the code and type this code in
and type in this code


public class Hello1
{
  
    // All java applications have a main() method.
    // This one displays a simple message.
  
    public static void main(String[] args)
    {  
    
        System.out.println("Hello World.");
    }
}



now you have have a simular image to the one stated below
8 now click on the button that says compile in the top left hand corner. 

now you have compiled your program

go back to your diagram with the class on it. 
you will see that the diagram of the class has changed the has marks have disappeared. This shows you graphically that your class has been compiled. 

notice that the hash marks have gone and there are only two lines in the corner of the book. 

Now right click your mouse button and on the menu click on the the option void main(String [] args)
A new window will appear with the message hello world 




No comments:

Post a Comment

Popular Posts