Thursday, August 30, 2012

How to Build and Run "Hello, world" Program

There was not much time at the end of class so I rushed through the process of how to write your first program. I'm adding some additional  instructions here. But you are encouraged to go on youtube and find some videos to help you as well.


  1. double click on the BlueJ icon to launch BlueJ
  2. click on Project and open a new project
  3. enter a file name for your project (maybe call it "Project 1")
  4. BlueJ window should now be open
  5. click on New Class to create a new class
  6. enter "Hello"
  7. double click on the Hello box in BlueJ 
  8. you should now see the code for Hello
  9. replace all the code in this window with what i showed in class.
  10. hit the compile button
  11. return to the main BlueJ window, right mouse click on the Hello box and select main()
  12. when it asks for args, just hit OK
  13. you should see Hello World printed on the console window
I promise to go over this in class step by step tomorrow as well.

Mr. Sarkar

No comments:

Post a Comment