So as you can see here again I didn't instantiate this rally but I just declared this valuable here.
OK.
Let's actually create a constant here.
First of all I need to actually specify the access modifier of my valuable private study.
And here I need to specify that I want to actually create a constant by just putting the final keyword
here and here with this strategy word means that this variable is going to be a class variable.
Ok so whenever that I actually referred to the name of this class in another class I can directly access
the value of this variable here because I actually put this 32 vote here.
OK.
The Data Type of my constant end.
And now I need to actually keep a name to my constant number on the line of models.
OK.
And then I put an assignment operator here.
So I want to actually instantiate this constant by just assigning the value 60 to my constant here and
now I want to actually create another object of type secure random class.
So I just need to type in here private static and finally OK the data type of My object is going to
be of type secure random the name of my object is secure.
Random numbers.
OK.
Assignment operator nil.
Secure random.
OK so I created an object of type secure random and this object is actually constant.
So this means that this object is just going to actually refer to some values inside the memory.
OK so this object is going to only refer to those values inside the memory.
So now let's actually create a constructor here.
So first of all I need to specify the access modifier of my constructor public and the name of my constructor
is puzzle OK.
And then I need to actually open and close this constructor by using these curly braces.
As you can see here it's now shown as an error.
OK because the name of this constructor is not the same as the name of this class.
OK so remember you must always write your constructor names the same as your class name.
OK so here I just need to put in a capital letter P.
Ok puzzle.
So now I think I see the error is gone.
So first of all let's actually create an array of type.
Strange.
OK so I just need to type in here.
Strange.
And as you can see that the data type of my array is going to have types strange.
And here I need to specify that I am going to actually create an array here.
OK so I just need to put in a pair of brackets and the name of my array is companies OK.
Assignment operator.
And then I need to actually open and close this Auret by using these curly braces because I want to
actually instantiate this by just assigning somebody used to this address.
OK so the first value that I want to actually assigned to this array is Apple.
OK come on.
And the second value is Google comma.
The first value is Sunni comma.
The fourth value is Sampson
OK.
Comma and here the fifth value is HTC.
OK and then I need to actually put a semi-colon at the end of my statement.
So here again I just want to create another array of types strange.
And here I need to specify that I want to actually create an array by using these brackets.
OK here after my typing and now the name of my array is devices and here I want to instantiate this
array.
So the first value that I want to assign to this array is experience that set free.
OK come on.
And the second value is iPhone 6 come up again put into double quotes here and here.
I just need to type in typing in Galaxy
8 comma and two double quotes here and instead of double quotes again I can just type in Galaxy Note
10.
OK come on again I want to actually assign another value to this array.
And here inside it will cause again just typing an iPod Touch.
OK comma HTC nine.
Come to experience that five.
OK come on iPod Nano.
OK.
Come on Expedia.
Come on.
Galaxy 6.
Ok come on up next Suze.
Five.
Come on.
Nexus 10.
OK so now let's actually put in a semicolon at the end of our statement.
OK.
Now let's actually instantiate this company and devices array here inside of this constructor.
So I just need to type in here companies and devices assignment operator new.
OK.
And again I need to refer to the name of this company and devices class company and device.
OK.
And here inside of these brackets I need to actually specify the size of this array so the size of this
area is number of models.
OK 60.
So here I just need to refer to the name of that constant number of models.
OK.
And here I need to put in a semi-colon at the end of my statement.
So now I want to actually give a value to this kind of device model here inside of the constructor current
device model assignment operator zero.
Now let's actually create a for loop here instead of this constructor for an inside Apprentice's.
Let's actually create a variable of type integer and the name of my variable is index 0 semi-colon.
And here I need to actually create a condition index less than companies and devices.
OK Len.
OK.
So this loop is going to be executed up until the value of this index variable is less than the value
of the length of this company and devices.
OK.
So here again I can just type in index plus plus.
So after each execution of this for loop the value of this index variable is going to be incremented
by 1.
OK.
So now instead of this for loop I want to actually give some values to this company and devices.
So as you can see here in line 24 we actually specify that the size of these Aure is 60 OK.
And that means that this area is going to accept 60 of values of type company and device class.
OK.
And we just specified the size of this.
Now you want to actually give values to this disobey.
So in order to give values to this are a I just need to refer to the name of this great company on devices.
Okay.
And I need to actually put in a pair of brackets after my array name here and inside of the brackets
I need to actually refer to the name of this index variable here.
OK.
Assignment operator new.
I would like to actually instantiate this Arey by actually assigning values of type company and device
class as you can see he had company in the works class and I have to actually instantiate is Arey by
actually creating values of type company and device class Soviet.
We just need to actually put in the new keyboard here.
OK.
And here I need to refer to the name of this class company and device.
And here we need to actually specify two values for this constructor OK.
So as you can see here now the constructor of this class is actually going to be called ok because we
are actually instantiating this arii.
OK it is the indexes of this Arey by creating objects of type company and device.
So when ever you actually create an object of type A company and device the constructor that is actually
inside of this class is going to be called.
OK so that's what you need to actually specify some values here for this constructor company and device
and inside the apprentice's.
First of all we need to actually specify the company name and second of all we need to actually specify
the company device.
So inside the puzzle class.
So now for the constructor of this company and device class as you can see here we are now going to
actually create some company and device objects.
OK from this class.
OK.
And then you want to actually assign those objects to these.
These are a company and devices.
OK.
This is the area that we actually declared in line 12 here inside of this puzzle class.
OK.