1
00:00:00,510 --> 00:00:06,880
So as you can see here again I didn't instantiate this rally but I just declared this valuable here.

2
00:00:06,900 --> 00:00:07,440
OK.

3
00:00:07,530 --> 00:00:09,500
Let's actually create a constant here.

4
00:00:09,510 --> 00:00:15,990
First of all I need to actually specify the access modifier of my valuable private study.

5
00:00:16,410 --> 00:00:23,590
And here I need to specify that I want to actually create a constant by just putting the final keyword

6
00:00:23,610 --> 00:00:29,190
here and here with this strategy word means that this variable is going to be a class variable.

7
00:00:29,210 --> 00:00:37,020
Ok so whenever that I actually referred to the name of this class in another class I can directly access

8
00:00:37,020 --> 00:00:41,820
the value of this variable here because I actually put this 32 vote here.

9
00:00:41,820 --> 00:00:42,310
OK.

10
00:00:42,420 --> 00:00:44,740
The Data Type of my constant end.

11
00:00:44,940 --> 00:00:52,770
And now I need to actually keep a name to my constant number on the line of models.

12
00:00:53,150 --> 00:00:54,070
OK.

13
00:00:54,690 --> 00:00:57,540
And then I put an assignment operator here.

14
00:00:57,630 --> 00:01:05,730
So I want to actually instantiate this constant by just assigning the value 60 to my constant here and

15
00:01:05,820 --> 00:01:11,480
now I want to actually create another object of type secure random class.

16
00:01:11,520 --> 00:01:20,310
So I just need to type in here private static and finally OK the data type of My object is going to

17
00:01:20,310 --> 00:01:24,670
be of type secure random the name of my object is secure.

18
00:01:25,290 --> 00:01:28,770
Random numbers.

19
00:01:28,890 --> 00:01:29,590
OK.

20
00:01:29,720 --> 00:01:32,050
Assignment operator nil.

21
00:01:32,310 --> 00:01:33,600
Secure random.

22
00:01:33,930 --> 00:01:40,440
OK so I created an object of type secure random and this object is actually constant.

23
00:01:40,440 --> 00:01:47,530
So this means that this object is just going to actually refer to some values inside the memory.

24
00:01:47,560 --> 00:01:52,200
OK so this object is going to only refer to those values inside the memory.

25
00:01:52,440 --> 00:01:55,370
So now let's actually create a constructor here.

26
00:01:55,410 --> 00:02:03,900
So first of all I need to specify the access modifier of my constructor public and the name of my constructor

27
00:02:03,900 --> 00:02:06,760
is puzzle OK.

28
00:02:07,290 --> 00:02:13,030
And then I need to actually open and close this constructor by using these curly braces.

29
00:02:13,230 --> 00:02:15,560
As you can see here it's now shown as an error.

30
00:02:15,650 --> 00:02:21,240
OK because the name of this constructor is not the same as the name of this class.

31
00:02:21,280 --> 00:02:28,790
OK so remember you must always write your constructor names the same as your class name.

32
00:02:28,800 --> 00:02:33,090
OK so here I just need to put in a capital letter P.

33
00:02:33,300 --> 00:02:34,570
Ok puzzle.

34
00:02:34,890 --> 00:02:37,110
So now I think I see the error is gone.

35
00:02:37,110 --> 00:02:40,800
So first of all let's actually create an array of type.

36
00:02:40,800 --> 00:02:41,720
Strange.

37
00:02:42,090 --> 00:02:44,160
OK so I just need to type in here.

38
00:02:44,160 --> 00:02:45,250
Strange.

39
00:02:46,020 --> 00:02:51,640
And as you can see that the data type of my array is going to have types strange.

40
00:02:51,900 --> 00:02:57,470
And here I need to specify that I am going to actually create an array here.

41
00:02:57,480 --> 00:03:05,260
OK so I just need to put in a pair of brackets and the name of my array is companies OK.

42
00:03:05,340 --> 00:03:06,770
Assignment operator.

43
00:03:07,140 --> 00:03:13,500
And then I need to actually open and close this Auret by using these curly braces because I want to

44
00:03:13,500 --> 00:03:17,720
actually instantiate this by just assigning somebody used to this address.

45
00:03:17,740 --> 00:03:22,630
OK so the first value that I want to actually assigned to this array is Apple.

46
00:03:23,100 --> 00:03:24,460
OK come on.

47
00:03:24,600 --> 00:03:27,320
And the second value is Google comma.

48
00:03:27,390 --> 00:03:31,630
The first value is Sunni comma.

49
00:03:32,310 --> 00:03:34,530
The fourth value is Sampson

50
00:03:37,690 --> 00:03:38,350
OK.

51
00:03:38,650 --> 00:03:44,560
Comma and here the fifth value is HTC.

52
00:03:45,160 --> 00:03:51,260
OK and then I need to actually put a semi-colon at the end of my statement.

53
00:03:51,350 --> 00:03:55,880
So here again I just want to create another array of types strange.

54
00:03:56,450 --> 00:04:01,940
And here I need to specify that I want to actually create an array by using these brackets.

55
00:04:01,940 --> 00:04:10,550
OK here after my typing and now the name of my array is devices and here I want to instantiate this

56
00:04:10,640 --> 00:04:11,300
array.

57
00:04:11,660 --> 00:04:18,820
So the first value that I want to assign to this array is experience that set free.

58
00:04:18,850 --> 00:04:20,960
OK come on.

59
00:04:21,890 --> 00:04:32,360
And the second value is iPhone 6 come up again put into double quotes here and here.

60
00:04:32,360 --> 00:04:34,570
I just need to type in typing in Galaxy

61
00:04:39,230 --> 00:04:48,320
8 comma and two double quotes here and instead of double quotes again I can just type in Galaxy Note

62
00:04:49,160 --> 00:04:50,470
10.

63
00:04:51,380 --> 00:04:56,070
OK come on again I want to actually assign another value to this array.

64
00:04:56,180 --> 00:05:02,000
And here inside it will cause again just typing an iPod Touch.

65
00:05:02,820 --> 00:05:07,060
OK comma HTC nine.

66
00:05:11,340 --> 00:05:16,230
Come to experience that five.

67
00:05:16,450 --> 00:05:20,070
OK come on iPod Nano.

68
00:05:20,270 --> 00:05:20,950
OK.

69
00:05:21,170 --> 00:05:24,070
Come on Expedia.

70
00:05:24,170 --> 00:05:24,950
Come on.

71
00:05:24,950 --> 00:05:27,050
Galaxy 6.

72
00:05:28,090 --> 00:05:30,680
Ok come on up next Suze.

73
00:05:30,710 --> 00:05:32,110
Five.

74
00:05:32,380 --> 00:05:33,300
Come on.

75
00:05:33,350 --> 00:05:34,710
Nexus 10.

76
00:05:36,950 --> 00:05:41,120
OK so now let's actually put in a semicolon at the end of our statement.

77
00:05:41,420 --> 00:05:42,110
OK.

78
00:05:42,380 --> 00:05:42,900
OK.

79
00:05:42,950 --> 00:05:49,380
Now let's actually instantiate this company and devices array here inside of this constructor.

80
00:05:49,490 --> 00:05:55,580
So I just need to type in here companies and devices assignment operator new.

81
00:05:55,980 --> 00:05:56,630
OK.

82
00:05:56,960 --> 00:06:03,760
And again I need to refer to the name of this company and devices class company and device.

83
00:06:03,800 --> 00:06:04,420
OK.

84
00:06:04,460 --> 00:06:11,210
And here inside of these brackets I need to actually specify the size of this array so the size of this

85
00:06:11,210 --> 00:06:13,370
area is number of models.

86
00:06:13,390 --> 00:06:14,260
OK 60.

87
00:06:14,390 --> 00:06:19,090
So here I just need to refer to the name of that constant number of models.

88
00:06:19,100 --> 00:06:19,600
OK.

89
00:06:19,760 --> 00:06:23,560
And here I need to put in a semi-colon at the end of my statement.

90
00:06:23,570 --> 00:06:30,950
So now I want to actually give a value to this kind of device model here inside of the constructor current

91
00:06:31,070 --> 00:06:35,000
device model assignment operator zero.

92
00:06:35,000 --> 00:06:42,520
Now let's actually create a for loop here instead of this constructor for an inside Apprentice's.

93
00:06:42,650 --> 00:06:51,350
Let's actually create a variable of type integer and the name of my variable is index 0 semi-colon.

94
00:06:51,890 --> 00:07:00,750
And here I need to actually create a condition index less than companies and devices.

95
00:07:00,830 --> 00:07:02,320
OK Len.

96
00:07:03,010 --> 00:07:03,530
OK.

97
00:07:03,710 --> 00:07:10,340
So this loop is going to be executed up until the value of this index variable is less than the value

98
00:07:10,340 --> 00:07:13,010
of the length of this company and devices.

99
00:07:13,330 --> 00:07:13,990
OK.

100
00:07:14,390 --> 00:07:19,270
So here again I can just type in index plus plus.

101
00:07:19,340 --> 00:07:24,590
So after each execution of this for loop the value of this index variable is going to be incremented

102
00:07:24,590 --> 00:07:25,280
by 1.

103
00:07:25,490 --> 00:07:26,460
OK.

104
00:07:27,230 --> 00:07:34,690
So now instead of this for loop I want to actually give some values to this company and devices.

105
00:07:34,710 --> 00:07:42,240
So as you can see here in line 24 we actually specify that the size of these Aure is 60 OK.

106
00:07:42,440 --> 00:07:49,330
And that means that this area is going to accept 60 of values of type company and device class.

107
00:07:49,450 --> 00:07:50,010
OK.

108
00:07:50,210 --> 00:07:52,930
And we just specified the size of this.

109
00:07:53,120 --> 00:07:56,420
Now you want to actually give values to this disobey.

110
00:07:56,540 --> 00:08:02,430
So in order to give values to this are a I just need to refer to the name of this great company on devices.

111
00:08:02,570 --> 00:08:03,090
Okay.

112
00:08:03,200 --> 00:08:11,000
And I need to actually put in a pair of brackets after my array name here and inside of the brackets

113
00:08:11,090 --> 00:08:14,630
I need to actually refer to the name of this index variable here.

114
00:08:14,910 --> 00:08:15,510
OK.

115
00:08:15,740 --> 00:08:17,950
Assignment operator new.

116
00:08:18,040 --> 00:08:25,970
I would like to actually instantiate this Arey by actually assigning values of type company and device

117
00:08:25,970 --> 00:08:31,670
class as you can see he had company in the works class and I have to actually instantiate is Arey by

118
00:08:31,670 --> 00:08:35,730
actually creating values of type company and device class Soviet.

119
00:08:35,750 --> 00:08:38,280
We just need to actually put in the new keyboard here.

120
00:08:38,420 --> 00:08:39,050
OK.

121
00:08:39,320 --> 00:08:43,020
And here I need to refer to the name of this class company and device.

122
00:08:43,400 --> 00:08:49,340
And here we need to actually specify two values for this constructor OK.

123
00:08:49,340 --> 00:08:55,880
So as you can see here now the constructor of this class is actually going to be called ok because we

124
00:08:55,880 --> 00:08:58,890
are actually instantiating this arii.

125
00:08:58,990 --> 00:09:04,980
OK it is the indexes of this Arey by creating objects of type company and device.

126
00:09:05,000 --> 00:09:11,350
So when ever you actually create an object of type A company and device the constructor that is actually

127
00:09:11,360 --> 00:09:13,320
inside of this class is going to be called.

128
00:09:13,360 --> 00:09:20,360
OK so that's what you need to actually specify some values here for this constructor company and device

129
00:09:20,420 --> 00:09:22,340
and inside the apprentice's.

130
00:09:22,430 --> 00:09:28,670
First of all we need to actually specify the company name and second of all we need to actually specify

131
00:09:28,670 --> 00:09:29,880
the company device.

132
00:09:30,110 --> 00:09:32,000
So inside the puzzle class.

133
00:09:32,030 --> 00:09:38,210
So now for the constructor of this company and device class as you can see here we are now going to

134
00:09:38,210 --> 00:09:41,820
actually create some company and device objects.

135
00:09:41,860 --> 00:09:43,270
OK from this class.

136
00:09:43,520 --> 00:09:44,100
OK.

137
00:09:44,300 --> 00:09:49,030
And then you want to actually assign those objects to these.

138
00:09:49,090 --> 00:09:51,400
These are a company and devices.

139
00:09:51,410 --> 00:09:51,880
OK.

140
00:09:52,070 --> 00:09:57,350
This is the area that we actually declared in line 12 here inside of this puzzle class.

141
00:09:57,570 --> 00:09:58,010
OK.

