Wednesday, August 1, 2018

HOW TO MAKE A PROGRAM USING BLUEJ


Firstly you should have to install BlueJ in your computer or laptop to make and compile a java program. So if u haven't install BlueJ yet then Click here and know the method that how to download and install the BlueJ.

Coming back to our topic, today we will learn about how to make "HELLO WORLD" program using BlueJ step by step. In my opinion this is the simplest one.

Step 1 : Open BlueJ application.
Step 2 : Create your new project.
              If you don't know how to create a project then Click here.
Step 3 : Then select the project from its destination.



Step 4 : Create new class by clicking on 'New Class'.
Step 5 : Then enter class name i.e. 'HelloWorld' and click OK button.


Step 6 : Now open HelloWorld class by double clicking on it and delete all the default commands.


Step 7 : Write a program now. The program that is needed to be written is given below:


Step 8 : Click on Compile. If there is no error then it should be compiled showing "no syntax error".
Step 9 : Close this window and right click on the HelloWorld class and click on void main(String []args) and then OK button.


Step 10 : You will find the result page as shown below;



How to start BlueJ:


Step 1 : First, double click the BlueJ icon which is on the desktop to obtain the following startup along with the version.
Step 2 : The opening screen comes as shown below.


Step 3 : The first menu item 'Project' , is a directory which contains the required files. It is required to create a directory through 'New Project' option.
Now, select New Project and click. The opening screen appears as follows.



Step 4 : A project/directory is created after writing the name in front of the space provided File name and click 'Create'.
The next screen appears on the main screen where Project icon is present on it.
Step 5 : Click 'Project' and then click 'New Class' . A window screen appears as follows where you write class name (say ITSeries)  and click OK.


Step 6 : A new window screen appears with the folder named ITSeries.


Step 7 : Now, just double click the folder ITSeries to open the class ITSeries. A sample structure of the class appears on the screen.
Step 8 : Select and delete the sample structure.


Now, start writing your program as illustrated below:


Compile the program, which displays the message:
Class compiled- no syntax errors (if no error), otherwise debug and recompile the program unless it is error free.