Our aim:- To help beginners
------ Waiting for contents -----
My.Blog
This page will help you to clear basics of java using BlueJ.
//How to create an object of a class:
class Base{ // Base is a class name
int num = 5; // Class Variable
public static void main(String[] args){ //Main function
Base obj = new Base(); //Creation of object of Base class
System.out.print(obj.num); //Priting class variable's vlaue
}
}
----- output -----
5
//Adding two numbers; (find error in this program)
class Add{
public static void main(String[] args){
int num1 = 19;
int num2 = 32;
int sum;
sum = num1 + num2;
System.out.print("\u000C");
System.out.print(sum);
}
}
------- output ------
73
-------- Find error (Is progrm mein kya galti h) ---------
//Adding two numbers;
class Add{
public static void main(String[] args){
int num1 = 19;
int num2 = 32;
int sum;
sum = num1 + num2;
System.out.print("\u000C");
System.out.print(sum);
}
}
--- output --
73
Friends this is new page I want to give you basics of java using BlueJ IDE.
You may also see some videos on blueJ on my this page.
How to watch videos:
1) Click on YouTube to the left side.
2) Click on Watch Video button on top-right.
If you like our videos then subscribe our youtube channel.
----- Thanks ---
//Print integer value and String:
class Person
{
public static void main(String args[])
{
int x=4;
System.out.print("\u000C"); //Clear the screen
System.out.println("x ="+x); //Printing value of x
System.out.println("My Name"); //Printing string
}
}
-------- Output ---------
x=4
My Name
BlueJ:
About BlueJ
Overview:-
BlueJ is a development environment that allows you to develop Java programs quickly and easily. Its main features are that it is:
Simple BlueJ has a deliberately smaller and simpler interface than professional environments like NetBeans or Eclipse. This allows beginners to get started more quickly, and without being overwhelmed.
Designed for teaching BlueJ is deliberately designed with good pedagogy in mind. There is a popular textbook designed for teaching introductory university/college courses with BlueJ, and a site full of teaching resources.
Interactive BlueJ allows you to interact with objects. You can inspect their value, call methods on them, pass them as parameters and more. You can also directly invoke Java expressions without compiling. Thus BlueJ is a powerful graphical shell/REPL for Java.
Portable BlueJ runs on Windows, Mac OS X, Linux and other platforms which run Java. It can also run without installation from a USB stick.
Mature BlueJ is over fifteen years old, but continues to be updated and supported by a full-time team. We aim to respond to all technical support requests within one working day.
Innovative BlueJ has several features not seen before in other IDEs. Its object bench, code pad, and scope colouring were all original BlueJ features.
Features of bluej:-
Its main features are that it is:
* Simple BlueJ has a deliberately smaller and simpler interface than professional environments like NetBeans or Eclipse. ...
* Designed for teaching BlueJ is deliberately designed with good pedagogy in mind. ...
* Interactive BlueJ allows you to interact with objects.
What is meant by JDK?
The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development.
How do I use Bluej?
Writing Java Programs using BlueJ
1.Create a folder/directory using Microsoft Explorer. ...
2. Invoke BlueJ. ...
3.Create a new project. ...
4.Create a new class. ...
5. Open the editor for the class. ...
6.Modify the code for the class. ...
7. Compile the class. ...
8.Run the application.
What is Blue Java programs?
BlueJ is a development environment that allows you to develop Java programs quickly and easily. Its main features are that it is: Simple BlueJ has a deliberately smaller and simpler interface than professional environments like NetBeans or Eclipse.
How do you run a program in BlueJ?
Execute a Java program in BlueJ:
Right click on the program file in BlueJ's main window, and then.
Left click on the void main(String[]args) tab:
A window will pop up: Left click on OK to run the program. Result: the output of the program is shown in BlueJ's "terminal" window:
Adapted from the BlueJ homepage.
1.STOP. ...
2.Download the appropriate version of Bluej. ...
3.After you have downloaded the proper file run it. ...
4.The BlueJ Installer will open.
5.Run through the steps of the installer.
6. When the installer has finished check that BlueJ has been installed correctly by running it.
What is the use of BlueJ?
BlueJ is an integrated development environment (IDE) for the Java programming language, developed mainly for educational purposes, but also suitable for small-scale software development. It runs with the help of JDK (Java Development Kit).