1
00:00:00,410 --> 00:00:04,630
And now let's actually go ahead and add some lines of code here.

2
00:00:04,640 --> 00:00:12,180
So now I even tried to the output the size of these are Auret to the screen after actually after adding

3
00:00:12,180 --> 00:00:13,190
values to these.

4
00:00:13,430 --> 00:00:20,550
OK so here first of all I refer to the name of this text you object to the aerialist capacity after

5
00:00:20,640 --> 00:00:27,780
adding values that said text anemones that size plus two double quotes so that this value is actually

6
00:00:27,780 --> 00:00:32,170
converted to a string value and then we can actually see that value on the screen.

7
00:00:32,310 --> 00:00:35,360
So now let's actually run our project and see what happens.

8
00:00:35,450 --> 00:00:36,040
OK.

9
00:00:36,120 --> 00:00:39,860
Now as you can see our application is running on this emulator.

10
00:00:40,050 --> 00:00:46,540
And as you can see it's the capacity of our aerialist after adding values is number 7.

11
00:00:46,710 --> 00:00:47,250
OK.

12
00:00:47,340 --> 00:00:52,240
So we have seven values inside of these animals right now.

13
00:00:52,310 --> 00:00:52,960
OK.

14
00:00:53,400 --> 00:00:58,620
So here let's actually create a method inside of this main activity class.

15
00:00:58,620 --> 00:01:05,040
So after the end in Curlylocks of this uncreate method let's actually create another method here.

16
00:01:05,100 --> 00:01:05,450
OK.

17
00:01:05,510 --> 00:01:05,840
OK.

18
00:01:05,850 --> 00:01:10,560
Now I'm going to actually paste this method here and then I'll explain to you what's going on here.

19
00:01:10,710 --> 00:01:11,290
OK.

20
00:01:11,550 --> 00:01:16,830
So as you can see here this is my method that they actually pasted here inside of this main activity

21
00:01:16,830 --> 00:01:17,610
class.

22
00:01:17,640 --> 00:01:24,330
So the access modifier of this if it is public the return type of this method is Voyt and the name of

23
00:01:24,330 --> 00:01:30,460
this method is output the aerialist values to the screen by using enhanced for loop.

24
00:01:30,540 --> 00:01:31,200
OK.

25
00:01:31,500 --> 00:01:37,720
And this method actually accepts two arguments and the first argument is actually after Aurelia's strange

26
00:01:38,100 --> 00:01:40,130
the name of this argument is values.

27
00:01:40,260 --> 00:01:46,640
And then the second argument is actually of type takes few and the name of this argument is takes you

28
00:01:46,650 --> 00:01:47,010
here.

29
00:01:47,040 --> 00:01:47,800
OK.

30
00:01:48,060 --> 00:01:54,370
And inside of the Smurfit as you can see first of all in 1960 I created the string variable.

31
00:01:54,390 --> 00:01:56,180
I declare this variable here.

32
00:01:56,400 --> 00:02:00,480
And then I'd actually I didn't instantiate this variable here.

33
00:02:00,480 --> 00:02:01,000
OK.

34
00:02:01,230 --> 00:02:02,800
And I created a for loop.

35
00:02:02,880 --> 00:02:03,580
OK.

36
00:02:04,080 --> 00:02:05,490
And enhanced for loop.

37
00:02:05,490 --> 00:02:09,180
I created actually a string variable called the value.

38
00:02:09,480 --> 00:02:13,530
And now you want to either rate over the values that are actually inside of this add a list.

39
00:02:13,530 --> 00:02:14,960
Here are key values.

40
00:02:15,210 --> 00:02:22,380
And now inside of this a for loop here as you can see I instantiated this all takes you a value and

41
00:02:22,690 --> 00:02:26,930
actually refers to the name of this takes you here that gettext that was.

42
00:02:27,090 --> 00:02:33,000
And then I assign this value to this old text view value and an inline 64.

43
00:02:33,000 --> 00:02:36,750
Are you referred to the name of this text you object that set text.

44
00:02:36,930 --> 00:02:40,890
All it takes you value plus value plus a space here.

45
00:02:41,000 --> 00:02:45,250
OK so now let's try to go back inside this uncreate method.

46
00:02:45,250 --> 00:02:49,840
Now let's actually add another value to these animals.

47
00:02:49,860 --> 00:02:50,120
OK.

48
00:02:50,130 --> 00:02:57,350
So animals darts at and inside of double quotes Let's actually type duck.

49
00:02:57,780 --> 00:02:58,760
OK.

50
00:02:58,860 --> 00:03:06,420
And now it's actually referred to the name of the Smurfette here on which foods are the frailest values

51
00:03:06,420 --> 00:03:07,050
to the screen.

52
00:03:07,080 --> 00:03:12,910
By using an enhanced for loop and this method actually accepts two arguments as you can see.

53
00:03:12,930 --> 00:03:16,880
So the first argument is actually of type and it really is strange.

54
00:03:17,010 --> 00:03:21,870
So now we have a list here as you can see animals.

55
00:03:22,410 --> 00:03:23,790
OK come on.

56
00:03:23,940 --> 00:03:26,600
And the second argument is actually offtake takes view.

57
00:03:26,640 --> 00:03:30,460
So I can just type anti-X the least values.

58
00:03:30,480 --> 00:03:34,610
Ok so now let's actually run our project and see what happens.

59
00:03:34,680 --> 00:03:35,010
OK.

60
00:03:35,010 --> 00:03:38,860
As you can see here now our application is running on this emulator.

61
00:03:39,060 --> 00:03:44,960
And here if we actually scroll to the left and here as you can see we can see this dog value here.

62
00:03:45,000 --> 00:03:45,610
OK.

63
00:03:45,780 --> 00:03:49,660
But here as you can see the capacity of Aurelia's after adding values is 7.

64
00:03:49,710 --> 00:03:50,210
OK.

65
00:03:50,430 --> 00:03:54,930
So here in line 49 I added another value to these animals at 8.

66
00:03:55,080 --> 00:04:02,580
So here I could actually just type in the Aurelia's capacity after adding values that said text animals

67
00:04:04,000 --> 00:04:07,670
are dot size plus two double quotes.

68
00:04:07,820 --> 00:04:13,110
That's actually run our project again and here as you can see our application is running on the simulator

69
00:04:13,200 --> 00:04:17,900
and here it says the capacity of analyst after adding values is 8.

70
00:04:17,940 --> 00:04:23,570
OK because we added these value this thug value to these are a hit as you can see here.

71
00:04:23,580 --> 00:04:24,390
OK.

72
00:04:24,750 --> 00:04:30,330
So hopefully this makes sense let's actually go back and say this our main activity that a fight here.

73
00:04:30,840 --> 00:04:36,970
But before that before adding any other lines of code here as you can see I created a for loop here.

74
00:04:37,200 --> 00:04:37,910
OK.

75
00:04:38,250 --> 00:04:43,650
And then I actually tried to output the values that are actually inside of this Aure to the screen.

76
00:04:43,650 --> 00:04:44,490
OK.

77
00:04:44,520 --> 00:04:51,330
And then I created this Smurfette here as you can see inside of this glass output the A list values

78
00:04:51,330 --> 00:04:53,570
to the screen by using enhanced for loop.

79
00:04:53,820 --> 00:04:59,450
And here I actually again called this method here kid in line 51.

80
00:04:59,920 --> 00:05:02,660
Here you want to out with the values of these animals.

81
00:05:02,680 --> 00:05:10,450
Ari to the screen and as you can see here I want to put those values to these text the at least values

82
00:05:10,480 --> 00:05:11,360
object.

83
00:05:11,440 --> 00:05:14,820
So here as you can see we've got our.

84
00:05:15,220 --> 00:05:23,230
As you can see this does actually go inside here as you can see lion tiger cat punter bear bear Fox

85
00:05:23,880 --> 00:05:27,220
lion again as you can see we can see those values are here.

86
00:05:27,230 --> 00:05:33,970
Lion Tiger-Cats and that's because we actually created this for live here and it was called the Smurfette

87
00:05:33,970 --> 00:05:34,600
here.

88
00:05:34,630 --> 00:05:35,270
OK.

89
00:05:35,290 --> 00:05:42,640
And it's going to actually put those values beside each other and here as you can see the flow of the

90
00:05:42,640 --> 00:05:45,140
program is going to try to execute this for a loop.

91
00:05:45,430 --> 00:05:49,620
And then here and then here here and here.

92
00:05:49,630 --> 00:05:50,270
OK.

93
00:05:50,530 --> 00:05:56,490
And we have to actually prevent these errors mistakes in our codes.

94
00:05:56,650 --> 00:06:01,120
So here we could actually comment out this line of code here.

95
00:06:01,360 --> 00:06:04,750
And if I actually did on my project again let's see what happens.

96
00:06:04,890 --> 00:06:08,850
And here as you can see we can see these values here only once.

97
00:06:08,860 --> 00:06:09,300
OK.

98
00:06:09,400 --> 00:06:10,690
Hopefully that makes sense.

99
00:06:10,690 --> 00:06:18,550
And as you can see here we can we can't see the tag value here because in this way the flow of the program

100
00:06:18,550 --> 00:06:24,010
only executes this for loop here and then it's going to execute this line of code and then it's going

101
00:06:24,010 --> 00:06:26,040
to actually execute this line of code here.

102
00:06:26,080 --> 00:06:26,730
OK.

103
00:06:26,950 --> 00:06:31,430
But as you can see the capacity of aerialist after adding values is 8.

104
00:06:31,450 --> 00:06:37,000
OK but we didn't actually tried to output this value to this screen yet.

105
00:06:37,000 --> 00:06:37,270
OK.

106
00:06:37,300 --> 00:06:40,170
Because we added this line of code after this for loop here.

107
00:06:40,270 --> 00:06:41,160
OK.

108
00:06:41,770 --> 00:06:49,960
So hopefully that makes sense and if we actually want to comment out this line of code here now I can

109
00:06:49,960 --> 00:06:52,030
actually uncomment this line of code here.

110
00:06:52,090 --> 00:06:54,850
And if I run on my project again let's see what happens.

111
00:06:54,880 --> 00:06:58,390
So now we can see our application is running on the simulator.

112
00:06:58,420 --> 00:07:04,690
And if you scroll to the left to the left as you can see we can see the stock value here and the capacity

113
00:07:04,690 --> 00:07:07,290
of Aurelia's after adding values is 8.

114
00:07:07,350 --> 00:07:11,460
OK so now let's actually add some lines of code here.

115
00:07:11,470 --> 00:07:14,830
So here I want to actually paste another line of code here.

116
00:07:15,220 --> 00:07:22,940
So as you can see here I want to actually add this value at index 0 of these animals Ali.

117
00:07:23,030 --> 00:07:23,760
OK.

118
00:07:23,950 --> 00:07:28,110
So here I just referred to the name of this Aure animals that I had.

119
00:07:28,240 --> 00:07:28,480
OK.

120
00:07:28,480 --> 00:07:33,660
And inside the apprentice's of this Meffert and I actually put the number zero.

121
00:07:33,700 --> 00:07:35,360
Here come the vault.

122
00:07:35,620 --> 00:07:42,420
So here I'm going to actually put this Avali evolve at index 0 of these arey.

123
00:07:42,520 --> 00:07:43,150
OK.

124
00:07:43,330 --> 00:07:50,690
So let's actually call the Smurfette here out foods the aerialist values to the screen.

125
00:07:50,920 --> 00:07:54,180
So here I just need to refer to the name of this at least here.

126
00:07:54,220 --> 00:07:59,410
Animals come on and are the list of ideas.

127
00:07:59,410 --> 00:07:59,880
OK.

128
00:08:00,100 --> 00:08:06,400
So here we need to comment out this line of code here because we don't want to actually execute these

129
00:08:06,400 --> 00:08:07,620
lines of code twice.

130
00:08:07,690 --> 00:08:08,430
OK.

131
00:08:08,770 --> 00:08:13,720
And in that way if you actually execute this line this line of code here and then execute this line

132
00:08:13,720 --> 00:08:20,020
of code here it's going to actually output those values those of animals names are to screen twice.

133
00:08:20,020 --> 00:08:23,080
So now let's actually run our project and see what happens.

134
00:08:23,110 --> 00:08:28,870
So here as you can see and here we can see that these values are outputted through the screen twice.

135
00:08:29,020 --> 00:08:29,470
OK.

136
00:08:29,500 --> 00:08:33,280
Here you can see these values twice here and now.

137
00:08:33,340 --> 00:08:38,680
Let's actually comment out of this line of code here and now it's actually not a project.

138
00:08:38,680 --> 00:08:40,980
Again let's see what happens.

139
00:08:40,990 --> 00:08:47,770
And here as you can see we can see these values here and now we can see this of Woelfel value is at

140
00:08:47,860 --> 00:08:52,330
index zero all of these are the OK of these animals.

141
00:08:52,420 --> 00:08:53,240
OK.

142
00:08:53,770 --> 00:08:55,370
So hopefully that makes sense.

143
00:08:55,390 --> 00:08:58,500
And now there's actually some more lines of code here.

144
00:08:58,510 --> 00:09:02,830
So now I want to actually remove the value that is inside of the index number.

145
00:09:02,830 --> 00:09:04,660
Two of these Adye.

146
00:09:04,810 --> 00:09:05,260
OK.

147
00:09:05,410 --> 00:09:10,240
So as you can see here this is not index number zero index number one.

148
00:09:10,390 --> 00:09:12,190
And it is index number two tiger.

149
00:09:12,220 --> 00:09:12,760
OK.

150
00:09:12,910 --> 00:09:16,040
So here I could just typing animal start.

151
00:09:16,070 --> 00:09:18,420
Remove index number two.

152
00:09:18,800 --> 00:09:19,310
OK.

153
00:09:19,390 --> 00:09:21,590
The value that is inside of the index number two.

154
00:09:21,850 --> 00:09:24,270
So here I could just take out foods.

155
00:09:24,460 --> 00:09:29,160
He out with the at least values to these to the screen by using enhanced for loop.

156
00:09:29,230 --> 00:09:34,060
And here I need to comment out this line of code here and here inside of the prentices I just need to

157
00:09:34,060 --> 00:09:40,590
refer to the name of this are the animals come on 60 at least values.

158
00:09:40,610 --> 00:09:44,580
Ok so now let's actually on our project and see what happens.

159
00:09:44,650 --> 00:09:50,830
So now as you can see the value that is inside of the index number two of this Arey is now removed.

160
00:09:50,840 --> 00:09:53,210
OK Wolf lion Chad punter.

161
00:09:53,470 --> 00:09:55,420
And we can see that value here.

162
00:09:55,510 --> 00:09:56,220
OK.

163
00:09:56,560 --> 00:09:58,400
So hopefully that makes sense.

164
00:09:58,780 --> 00:10:03,040
And now it's actually to go back inside these main activity that of a fight here.

