OK everyone now inside this main activity class I want to actually create some objects.
OK.
So first of all let me actually specify the access modifier of my object to private and then I want
these objects to be static.
And this means that this object is actually a class object.
OK.
So we can actually do the first with the name of this object by using the class dot notation.
OK the name of this class that the name of that object.
OK.
So you can actually delete this static keyboard here if you want to but are here I just wanted to show
you that you can actually create static objects too.
OK.
So fine.
And this finally means that this object is actually a constant.
OK.
And when we say that an object is actually a constant.
This means that the reference that we have to that object is going to be a constant throughout the entire
application.
That reference is only referring to that object inside the memory and not any other objects.
OK so fine on secure random.
OK.
Secure random.
And the name of our object is secure.
Random numbers.
OK.
Assignment operator new secure.
Random.
OK.
So as you can see here I created an object from this secure random class and then I assigned this name
to this object to secure random numbers and then I actually instantiated this object by using this new
keyword here.
OK.
So when you instantiate an object this means that you're are actually creating a reference to that object
inside the memory.
OK so we have now our reference to the address of that object inside the memory.
OK.
So now I want to talk about a concept called in arms.
OK so let's actually create on an income and then I actually are talking about in Java OK.
So first let me specify the access modifier private's and income.
OK.
As you can see in some key vote we'll keep access modifier on keyboard.
And then again I need to actually give a name to my name.
So just type in hero status with the capital S status and then I need to actually open my by actually
using an opening curly brace and then I need to close that in and by using our closing curly brace OK.
So inside this you know I can actually put in some values so remember that you can in order to actually
give values to an arm and the leaders of all of your values must be chapiter OK.
This is actually a convention in Java.
So for the first value just type in here not started yet.
OK come on.
And the second value is proceed
OK.
Comma on a first value is 1 and or fourth value is lost.
OK so here as you can see we have an income.
OK.
And we gave a name to this in you know status.
OK.
The access modified of this is private.
So it is of value is actually this is actually visible only to this class and no other classes can use
this in.
OK because we actually defined this as private.
OK so in arms actually introduces a new type ok like in teacher for example when you create an integer
variable like this the type of this variable is int integer.
OK so it is just like this.
OK.
We have an income OK here aren't the type of our in is status OK it is just like your right here.
OK.
And the type of our variable is status defined or own type.
Remember when you declare it when you declare an income you are actually defining your own type in that
project.
OK so this status is actually our own type.
And these are the values actually the only values that we actually specified for this.
You know OK this type can only accept these values.
Not started yet.
I made a mistake here.
Not started yet.
OK.
So this arm this can only have this can only actually accept these values.
Not started yet.
Proceed one last.
OK.
And you may wonder what the type of these values.
Ok the type of these values is actually integer.
OK.
Because assigning integer numbers to this type is a little confusing.
I decided to actually assign some values that is human readable and a human can understand those values
but actually those values are integer values.
OK.
So for example this in on here is actually 0.
This value is actually 0.
OK this value is 1.
This value is 2.
And this value is free.
OK.
So this in on here defines a set of named integer constants.
So remember these are constants.
OK we cannot change these values later in our code.
These are constants and these are integer constants OK and start.
And these are not actually starts with the value 0 by default.
OK so this value is 0 1 2 3.
OK.
And these values are actually incremented by 1 automatically.
If I actually put another value here for example something like this.
This value is actually number fourth.
OK.
It is actually incremented by one automatically.
So hopefully that makes sense and I'll talk more about it.
So don't worry if there's if this doesn't make any sense to you let's actually go ahead and continue
building our application and it will make sense to you at the end of this tutorial OK.
So let's actually create some constants inside this class and remember we are actually creating this
objects and this in an inside the class.
OK.
And not inside this creates method.
So make sure that you actually create these values inside this class and here let's actually create
some constants.
So first of all I want to specify the access modifier of my constant so private.
OK.
Static.
OK.
Final int.
OK.
So as you can see here the access modifier of my constant is private.
My constant is actually static.
OK.
You can actually delete this static key word here but I wanted to show you that you can actually create
constants that are actually static and static means that we can refer to this actually valuable to this
constant by actually referring to the name of this class without creating any objects from this class
by referring to the name of this class that the name of this constant we can access the value of this
constant.
OK.
So that's the rule for.
Are you actually using a static variable or objects.
OK.
So hopefully that makes sense.
And then now I want to actually give a name to my constant And remember when you create a constant the
letters of the name of that constant should be capitalized.
OK.
The name of a constant is Tiger.
Underline class.
OK.
And I want to assign a value to my variable for example number two.
OK.
So let's actually create another cons another constant private's static final.
OK.
Int the name of my variable this time is three.
And then I assign the value free to my variable.
Actually it is a constant OK a special type of variable.
Ok constants are a special type of variable.
Once we assign a value to those variables we cannot change that value.
We cannot change that value of later in our code.
Ok so private static final INT and this time the name of my variable is 7 with a capital.
See here as you can see.
And then I assign the value of 7 to my variable to my constant here private static final INT and at
this time the name of my variable is the Levan.
OK.
And then I assigned a value 11 to this constant.