1
00:00:00,510 --> 00:00:07,800
As you can see here we have actually a variable of type screen and the name of our variable is animal

2
00:00:07,830 --> 00:00:09,230
image name.

3
00:00:09,420 --> 00:00:16,680
And then I put an assignment operator here and then I referred to this list here to this list that we

4
00:00:16,680 --> 00:00:18,610
actually created inside this class.

5
00:00:18,690 --> 00:00:20,530
All animals names the list.

6
00:00:20,550 --> 00:00:20,960
Right.

7
00:00:20,970 --> 00:00:27,690
So this list is going to actually hold the animal images the actually the names of the animals that

8
00:00:27,720 --> 00:00:28,800
we specify.

9
00:00:28,890 --> 00:00:32,330
We want to have inside of our quiz for example.

10
00:00:32,660 --> 00:00:40,110
We specify that we want to have actually the tame animals or the actually the wild animals inside Ahlquist

11
00:00:40,410 --> 00:00:42,670
in that case it can actually hold this.

12
00:00:42,680 --> 00:00:50,490
This is going to hold the animals of each type that we specify We want to have inside our quits and

13
00:00:50,550 --> 00:00:52,890
that's this list here.

14
00:00:52,890 --> 00:01:00,900
These all animals names list is going actually hold the images the names of those images that we want

15
00:01:00,900 --> 00:01:02,110
to have in say the quiz.

16
00:01:02,190 --> 00:01:03,270
Right.

17
00:01:03,390 --> 00:01:09,660
For example we got to have tame animals or we want to have wild animals or we may be moving and should

18
00:01:09,660 --> 00:01:13,310
we want to have tame and wild animals inside our.

19
00:01:13,590 --> 00:01:20,360
And in that case is this list here is going to hold those images those image names.

20
00:01:20,640 --> 00:01:24,260
So now let's actually go back inside our studio here.

21
00:01:24,320 --> 00:01:27,490
It's actually publicly turn this tape here in order to make his area wider.

22
00:01:27,840 --> 00:01:30,540
So all animals names least that get.

23
00:01:30,810 --> 00:01:38,130
So because this is actually the list in order to get the value of this specific index that we have inside

24
00:01:38,130 --> 00:01:41,000
this list we need to use the get method.

25
00:01:41,310 --> 00:01:48,810
So now I want to actually get of value that of it of a specific index that we have inside this list.

26
00:01:48,810 --> 00:01:52,410
So now you may ask that what is going to be that index.

27
00:01:52,410 --> 00:01:57,120
So this operation here as you can see is going to specify that index.

28
00:01:57,120 --> 00:01:57,590
Right.

29
00:01:57,720 --> 00:02:03,980
So for the first time that this is going to be executed as you can see the value of the role variable

30
00:02:04,020 --> 00:02:04,520
is zero.

31
00:02:04,520 --> 00:02:05,510
Right.

32
00:02:05,580 --> 00:02:09,600
And also as you can see the value of this column about Ebell is zero.

33
00:02:09,630 --> 00:02:11,570
So now zero.

34
00:02:11,780 --> 00:02:20,310
Multiply it by two is zero right ZERO multiplied by two results in the value zero plus and Cullom is

35
00:02:20,310 --> 00:02:21,170
also zero.

36
00:02:21,210 --> 00:02:21,740
Right.

37
00:02:21,780 --> 00:02:25,690
So zero plus zero results in the values zero.

38
00:02:26,100 --> 00:02:32,250
And now it's going to actually get the value that we have inside the index zero of these all animals

39
00:02:32,250 --> 00:02:37,310
names list and then is going to actually assign that value to this animal.

40
00:02:37,310 --> 00:02:38,770
Image Name.

41
00:02:39,000 --> 00:02:43,910
And then here as you can see in line number three hundred sixty eight is going to actually execute this

42
00:02:43,910 --> 00:02:48,480
line of code here PTEN guessed that set text get the exact animal name.

43
00:02:48,490 --> 00:02:54,660
So we use this method to actually get the right animal name without the parts that we don't want to

44
00:02:54,930 --> 00:02:55,570
have.

45
00:02:55,740 --> 00:02:58,170
So get the exact animal name animal image name.

46
00:02:58,170 --> 00:03:01,730
So let me actually show you the emulator and then it will make sense.

47
00:03:02,100 --> 00:03:09,120
So as you can see here our application is running on this emulator and here as you can see for the first

48
00:03:09,130 --> 00:03:12,020
button as you can see we have the value on it.

49
00:03:12,390 --> 00:03:15,680
And for the second button as you can see we have the value.

50
00:03:15,930 --> 00:03:20,100
So now as you can see first we can actually look at the row.

51
00:03:20,130 --> 00:03:24,990
So now we are actually inside the row 0 right for the first time that is for up here is going to be

52
00:03:24,990 --> 00:03:25,810
executed.

53
00:03:25,870 --> 00:03:27,520
We're inside the row 0.

54
00:03:27,520 --> 00:03:32,720
So now as you can see if I show you the emulator as you can see this is the first row right.

55
00:03:32,790 --> 00:03:36,470
And now as you can see we have another for loop here inside this for a loop.

56
00:03:36,480 --> 00:03:39,510
And here we are actually specifying the Cullom.

57
00:03:39,660 --> 00:03:42,320
So the column is going to be the pattern inside this row.

58
00:03:42,510 --> 00:03:47,070
So now we are inside the row 0 and column 0.

59
00:03:47,070 --> 00:03:50,160
So this means that you're going to actually work on this button.

60
00:03:50,610 --> 00:03:53,790
And now as you can see the I try to create a button.

61
00:03:53,820 --> 00:03:56,010
So it's going to create a button for us.

62
00:03:56,010 --> 00:04:03,360
And then as you can see those of buttons in animal animalcules in row 0 that at get child at column

63
00:04:03,360 --> 00:04:03,990
0.

64
00:04:03,990 --> 00:04:09,660
So this is the first button and then it's going to enable this button here as you can see.

65
00:04:09,870 --> 00:04:17,130
And then as you can see we are specifying the name actually the name of the spot in strange animal image

66
00:04:17,130 --> 00:04:18,110
name.

67
00:04:18,510 --> 00:04:22,310
So assignment operator all animals names list.

68
00:04:22,350 --> 00:04:28,560
So this list here is going to actually hold the the names of the animals that we can have inside the

69
00:04:28,560 --> 00:04:30,270
Queen's dot net.

70
00:04:30,300 --> 00:04:36,980
So here I want to actually get the value that is inside of this specific index of this animal.

71
00:04:36,990 --> 00:04:38,270
All animals names list.

72
00:04:38,370 --> 00:04:42,120
So now you may ask that what is going to be that index the index.

73
00:04:42,120 --> 00:04:43,500
Is this operation here.

74
00:04:43,500 --> 00:04:47,090
First it's going to multiply the value of this low by 2.

75
00:04:47,190 --> 00:04:50,170
So 0 multiplied by two is zero.

76
00:04:50,370 --> 00:04:52,850
And as you can see here the column is also zero right.

77
00:04:52,860 --> 00:04:54,870
So zero plus zero is zero.

78
00:04:54,870 --> 00:05:00,400
So it's going to actually give us the value that is inside of the index zero of this Namath's names

79
00:05:00,400 --> 00:05:04,850
list and then we can actually assign that value to the animal emergency.

80
00:05:05,110 --> 00:05:12,070
So now this animal image name here in this case holds the value aren't right and that here PTEN guess

81
00:05:12,490 --> 00:05:18,700
that said text get the exact animal name if you are using a Windows machine or just hold the control

82
00:05:18,700 --> 00:05:19,730
key on your keyboard.

83
00:05:19,810 --> 00:05:24,340
And if you are using a Mac just use the comment here on your keyboard and then click on display of it

84
00:05:24,340 --> 00:05:24,840
here.

85
00:05:25,000 --> 00:05:26,840
As you can see now this is the method.

86
00:05:27,040 --> 00:05:32,610
So a private stream get the exact animal name and this if it accepts a value of type string.

87
00:05:32,890 --> 00:05:34,830
And it's going to show the return value of the upstream.

88
00:05:34,840 --> 00:05:36,780
So animal named that substring.

89
00:05:36,970 --> 00:05:40,290
So this argument here as you can see that substrate.

90
00:05:40,360 --> 00:05:45,460
So this subsetting IF it is going I should give us a substring of this value that we has through the

91
00:05:45,460 --> 00:05:54,750
Smurfette animal that index of Dasch plus one so it's going to look at the index of this dash of this

92
00:05:54,900 --> 00:05:59,690
animal name plus one so it can actually go one index.

93
00:05:59,880 --> 00:06:01,440
Actually one in forward.

94
00:06:01,440 --> 00:06:06,190
So now let me show you the structure of the project as you can see for example inside this tape handling

95
00:06:06,230 --> 00:06:08,100
animals we have this.

96
00:06:08,280 --> 00:06:09,480
And here right.

97
00:06:09,540 --> 00:06:11,800
So tame Underland and mustache.

98
00:06:11,820 --> 00:06:16,260
So the stuff here is it's going can actually look at the index of the stash here and then it's going

99
00:06:16,260 --> 00:06:17,290
actually.

100
00:06:17,700 --> 00:06:23,160
Plus one is going to actually increment this in the ex-spy van so he's going to look at the age here

101
00:06:23,190 --> 00:06:26,090
after this dash that replace.

102
00:06:26,100 --> 00:06:32,010
So he's going to actually replace the entire name as you can see so it's going to look at the entire

103
00:06:32,010 --> 00:06:34,340
named after this dash as you can see here.

104
00:06:34,350 --> 00:06:37,550
So the entire name is and that Pinti right.

105
00:06:37,560 --> 00:06:43,230
So if there is actually are and underline here it going to actually replace it with or without actually

106
00:06:43,230 --> 00:06:44,490
the space character.

107
00:06:44,550 --> 00:06:44,990
Right.

108
00:06:45,000 --> 00:06:49,390
So we don't have an underlined when we call this method here.

109
00:06:49,560 --> 00:06:51,500
So let's go back to our Mefford here.

110
00:06:51,680 --> 00:06:52,910
Next animal.

111
00:06:53,610 --> 00:06:57,200
Let's scroll down here as he has it this is our for loop here.

112
00:06:57,210 --> 00:06:57,800
Right.

113
00:06:57,810 --> 00:07:00,730
So you get the exact animal animal imagining.

114
00:07:01,170 --> 00:07:01,760
Right.

115
00:07:01,770 --> 00:07:06,790
So pretty and guess that it takes to get the exact animal animal image name and it can actually set

116
00:07:06,790 --> 00:07:10,090
that value here and aunt as you can see here.

117
00:07:10,110 --> 00:07:11,060
Right.

118
00:07:11,130 --> 00:07:15,070
So now for the second time that this follow up it's going to be executed.

119
00:07:15,070 --> 00:07:19,530
Now as you can see first is going to actually look at this for a loop here.

120
00:07:19,680 --> 00:07:22,660
So it's going to increment the value of this column by one.

121
00:07:22,890 --> 00:07:23,940
Right.

122
00:07:23,950 --> 00:07:26,310
And now the value of this color is one.

123
00:07:26,340 --> 00:07:27,120
Right.

124
00:07:27,120 --> 00:07:30,500
So now it's going to actually look at this condition here again.

125
00:07:30,510 --> 00:07:37,670
So number one is actually less than the value of this get child count of the rules of course.

126
00:07:37,750 --> 00:07:38,990
And in animalcules role.

127
00:07:39,150 --> 00:07:42,390
Because each role has two buttons right.

128
00:07:42,420 --> 00:07:48,250
So as you can see with the Get child count it here is going to return the value to here.

129
00:07:48,360 --> 00:07:48,920
Right.

130
00:07:49,140 --> 00:07:52,890
So number one is less than two so can actually execute this follow.

131
00:07:52,890 --> 00:07:54,250
Here again here.

132
00:07:54,250 --> 00:07:59,250
So again it's going to create another button so it's going to create this button here horse is going

133
00:07:59,250 --> 00:08:03,240
to actually enable this button and then it's going to actually get the name.

134
00:08:03,240 --> 00:08:08,550
So for example here in this case as you can see all animals names these that get.

135
00:08:08,610 --> 00:08:10,520
So now the value of this rule is zero right.

136
00:08:10,530 --> 00:08:14,220
So here we still we are actually inside the 0 0 0 0.

137
00:08:14,220 --> 00:08:16,500
Multiplied by two is zero plus.

138
00:08:16,650 --> 00:08:20,810
And now the value of this column is 1 so 0 plus 1 is 1.

139
00:08:20,910 --> 00:08:29,660
So it's going actually specify this column here and now as you can see the 0 plus 1 is 1 and it's going

140
00:08:29,680 --> 00:08:36,940
actually get the de-value that is inside of the index number one of these all animals names list.

141
00:08:37,260 --> 00:08:39,870
And it's going to assign that value to these animal image names.

142
00:08:39,960 --> 00:08:42,840
And now as you can see in this case this is horse.

143
00:08:42,880 --> 00:08:47,740
So between guess that text get the exact animal name animal image name.

144
00:08:47,880 --> 00:08:49,120
So this is horse.

145
00:08:49,500 --> 00:08:50,980
So hopefully that makes sense.

146
00:08:51,180 --> 00:08:55,140
And then it's going to to again add one value to the value of this column.

147
00:08:55,140 --> 00:08:57,570
So now the value of this column is too.

148
00:08:57,810 --> 00:09:00,210
And again it's going to actually look at this condition here.

149
00:09:00,340 --> 00:09:07,350
So number two is actually is not less than the value of this get child count because each load has two

150
00:09:07,350 --> 00:09:08,070
columns.

151
00:09:08,070 --> 00:09:09,660
So two is not less than two.

152
00:09:09,690 --> 00:09:15,540
So it is a splash here as you can see it's going to evaluate to false and then it's not going to execute

153
00:09:15,540 --> 00:09:16,890
this follow it any more.

154
00:09:17,130 --> 00:09:19,740
And now it can actually look at this for a loop here.

155
00:09:19,740 --> 00:09:24,440
So now are the is going to actually increment the value of this roll by one.

156
00:09:24,450 --> 00:09:26,930
So now the value of this ROE is 1.

157
00:09:27,210 --> 00:09:33,330
So as you can see here so low is less than the number of animals as Rose as you can see here here we

158
00:09:33,330 --> 00:09:38,880
actually specified that we want to have two laws or we want to have actually as you can see here we're

159
00:09:38,880 --> 00:09:41,720
going to have four guest options and this means that we have.

160
00:09:41,720 --> 00:09:43,020
We want to have two close.

161
00:09:43,170 --> 00:09:49,780
So now it's going to actually look at this ROE here which is inside the index number one of these he

162
00:09:49,890 --> 00:09:56,460
had loads of spottiness in animal cuius So Roe as you can see here is now one.

163
00:09:56,610 --> 00:10:01,690
So one is less than the number of animals going through because we have to lose.

164
00:10:01,690 --> 00:10:05,550
So number one is less than these I guess throws here as you can see.

165
00:10:05,550 --> 00:10:07,670
So it's going to execute this fall here.

166
00:10:07,890 --> 00:10:11,090
And then again it's going to go inside this fall and I say this for loop.

167
00:10:11,280 --> 00:10:14,850
And then it's going to actually specify these values here.

168
00:10:14,850 --> 00:10:16,690
So hopefully that makes sense.

