Hire everyone in this theater all I'm going to go ahead and actually talk about little else.
OK.
So first we need to create a Java project.
Just click on this flight Neil and then click on Java project.
OK.
So for the project name just type in here literals AJ and then click on finish.
So as you can see here our project is now created and we need a class.
OK.
So click on this file new and then click on class for the class name.
Just type in here Ledermann and for the package name as you know we need our reverse domain here.
So com that mortiser
OK.
And then at the end of our practice at the end of our package name we need to actually put the project
name which leaders and for the modifiers choose public.
And here check this check box here that says public static void main method.
OK.
This is our starting point for running our job code.
OK.
So just click on this finish and here our class is created.
So first let me read this a comment here and then I want to make this a little area.
OK.
So as I said earlier in the section you need to double click on this.
Job I have here.
OK.
As you can see my editor area is now wider.
OK so now I'm going to talk about leaders.
OK.
And here first let me point out that Java has several integer literals.
So for example this ain't valuable here.
The name of the variable i choose integer integer value.
OK and I assigned the number five to my value.
But as you can see this number five is a value that I can assign to this integer variable here.
OK.
In terms of literals this number phi is an integer the rule of the Ain't valuable type.
OK this variable can also be assigned to bite and short variable's because this number is small enough
to fit into those integer types.
So for example if I want to create another variable here be the data type of short as you can see here.
And the name of my variable would be short.
Value.
And then I can assign this value to my body.
OK.
Because these are number five here of this value is small enough to fit into this short data.
Ok here I can actually create another variable with a data type of byte as you can see here.
And for the valuable names I can just type in here byte value.
OK.
And then I can assign the number five to my variable here because this number again this number 5 is
small enough to fit into these integer types.
OK.
So this number 5 is an integer that all of the variable here.
OK.
As you can see.
OK.
So here let me show you another example.
For example Lanc the right type of my variable is long OK.
And the name of my variable with the number of balls.
OK.
Now I can assign the value 1 to my value then.
OK.
So here if I want to output the value of this number of balls variable to the console I just need to
type in here system that out that princeling and that inside Apprentice's I just need to refer to the
name of the variable number of balls.
And here I use the autocomplete feature of the eclipse to actually help me write the variable name and
at the end of your statement just put a semi-colon.
OK.
So here I want to actually let you know another point about Eclipse.
As you can see this star symbol here is now appearing beside the name of my class.
OK so now if I want if I actually save my project by pressing on the common plus the s key on my keyboard
I can save my project.
OK so now let me actually create a comment here for maximizers Pakhi in order to save your project just
actually press on common key.
Plus the key on your keyboard.
In order to save your your project.
So let me now say if my project and as you can see here this star here is now gone.
OK.
So this is how you say your project in Mac for Windows users
for Windows users.
Just press on control key it plus the s key on your keyboard.
OK.
So this is how you say your project are in Eclipse.
OK.
So another point that you actually talk about here is for example if I want to actually add another
value to the number of balls are valuable here.
So as you know I can assign another value to this or to this valuable here because this is not a constant.
So it's just a regular variable.
This is not a constant.
OK so I can't assign another value to this variable.
So I just need to refer to the name of my variable again.
I actually use the autocomplete feature of the eclipse and then as you can see here I referred to the
name of my variable.
And again I want to actually assign another value to this variable.
So I just type in here the name of my variable OK plus the number 40.
OK.
So as you can see here you may ask that what's going on here.
OK.
So now as I said earlier in the section this is not an equal operator OK.
So here I referred to the name of my variable here in order to read its value.
OK.
So now as you can see this is number one here.
OK.
If you want to actually delete this variable name here and just put a number number one here.
OK this is the same as if you want to for example put that name of my value.
But what this is a good programming practice that you actually referred to the name of your valuables
in order to return values.
OK.
So this is not good to actually heart code your values in your programs.
OK.
So I'll actually show you more examples about this concept later in this course.
But for now just know that this number of balls here means I am referring to the invaluable name here.
In order to read it's value.
Ok here I am adding this number to the value of my variable here.
OK.
So let me actually run my project now.
And as you can see here it outputs the value of this variable here to the console.
OK the value of this variable here is number one.
OK.
As you can see here output the value of this valuable to the console here.
OK let's see what happens system that out that land.
And then inside Apprentice's I just say to refer to the name name of my valuable OK number of balls.
And at the end of my statement I just need to put a semi-colon.
So here if I run my project now it outputs the value of 41 to the console.
OK so what happens here here.
I actually created this value.
OK.
And here I decided to output the value of this value over to the console.
OK.
In this line.
OK.
And in the line 18 here as you can see here I added this number to the value of my value.
OK which is number one.
OK.
And then I assign the result of this operation to my value.
OK.
And then I assign the result of this operation to my variable.
So let me explain to you once again here.
I actually added this number to the value of my body event which is number one.
OK.
I am referring to the name of my variable in order to lead its value.
OK this is a very important point in programming.