BLUE J
Blue J is a java development environment specifically designed for teaching in introductory level . It was designed and implemented by the blue J team at Deakin University, Melbourne, Australia , and the University of Kent at Canterbury, UK. Blue j has put together the feature of an Editor , Debugger and a viewer.
To install Blue j use the Website (www.BlueJ.com) or (www.BlueJ.org) and follow the Given instructions at the specified website.
Blue J is a Java development environment. It is an IDE which includes an editor ,a debugger, and a viewer.
STEPS TO START AN PROGRAM
STARTING BLUE J
1. Click on Start button
2. Choose All programs
3. Click on BLUE J
OR
YOU WILL FIND IT ON YOUR DESKTOP SCREEN.
STARTING A NEW PROJECT
1. CLICK on NEW PROJECT from PROJECT MENU.
2. Enter the project name and check the project location.
3. Click on Create button.
4. Click At new class Button on the project tool bar . A Create New class dialog box appears.
5. In the Dialog box write the class name in the Space provided and Click on OK . DOUBLE – CLICK on the class or right click on it and then click on OPEN EDITOR.
6. Delete the code that is not required and Start writing the program as desired.
7. Write the required code and click on COMPILE button.
YOU CAN FIND THIS ALL POINTS EXPLAINED AND THE CODE WRITTEN ON MY YOUTUBE CHANNEL. THEREFORE , LIKE, SUSCRIBE , SHARE AND WATCH TILL END.
COMPILATION
To compile a class, click on the compile button in the EDITOR. If there are no syntax errors present in the code then click on CLOSE button. When the Program is compiled successfully the icon in the main window becomes unshaded.
EXECUTING THE PROGRAM
To execute a JAVA program in BLUE J , follow these Steps :-
1. Right click on the program file in BLUE J main window.
2. Then left click on the void main (string[]args) tab.
3. A window will pop up.
JUST CLICK ON OK BUTTON TO SEE THE OUTPUT.
THE OUTPUT WILL BE SHOWN ON THE SCREEN.
YOU CAN FIND THIS ALL POINTS EXPLAINED AND THE CODE WRITTEN ON MY YOUTUBE CHANNEL.
IDENTIFIERS
Identifiers are those words in JAVA code that you choose. In JAVA , you will need to identify many elements in your code, including class names, methods, fields, variables and package names . The names you choose are called identifiers and must adhere to the following rules :-
1. An identifiers cannot be a keyword or true, false, or null.
2. An identifiers can consist of letters , digits 0-9, the underscore, or the dollar sign.
3. An identifiers must start with a letter, an underscore, or a Dollar sign.
For example :- My example, IO example, HelloWorld, Signature, system, String, age, colour, and Heights are valid identifiers since Java is case sensitive. That means This is a valid identifier because it is different from the keyword this.
JAVA KEYWORDS
The keywords of a programming language are the words that define the language , have special meaning to the compiler, and cannot be used as identifiers .
LITERALS
A literal denotes a constant. For instance “hello world” is a string literal and its meaning is the words HelloWorld . JAVA has several kind of literals . They are:-
1. CHARACTER LITERALS
2. STRING LITERALS
3. INTEGER LITERALS
4. FLOATING POINT LITERALS
5. BOOLEAN LITERALS
VARIABLES
Variables are used to store data . In JAVA , a variable needs to be declared . Declaring a variable invlves two steps: giving the variable a name and stating what type of data is to be stored in the variable . JAVA also have different types of variables:-
1. ASSIGNING VARIABLES
2. CHARACTER VARIABLES
3. INTEGER VARIABLES
4. FLOATING VARIABLES
5. BOOLEAN VARIABLES
OPERATORS
Operators are specials symbols that represent operations that can be carried out on variables, constants or expressions. The types of Operators available in JAVA are :
1. Arithmetic
2. Increment/decrement
3. Relational
4. Logical
5. Shift
6. Bitwise
7. Assignment
8. Conditional
9. []operator
10. New operator
11. (type)cast Operator
12. ()operator
13. Dot operator
SOME OF THE OPERATORS ARE GIVEN BELOW:-
1. ARITHMETIC OPERATORS
2. UNARY OPERATORS
3. INCREMENT OPERATORS
4. RELATIONAL OPERATORS
5. LOGICAL OPERATORS
6. ASSIGNMENT OPERATORS
7. SHIFT OPERATORS
Post a Comment