1
00:00:00,510 --> 00:00:03,730
So first of all are we fair to the name of this array.

2
00:00:03,970 --> 00:00:11,270
Floats numbers are a ok and then I need to actually be in a pair of brackets after my name.

3
00:00:11,760 --> 00:00:16,550
And here I need to actually putting this index here index.

4
00:00:16,800 --> 00:00:17,010
OK.

5
00:00:17,010 --> 00:00:21,540
And this means for example the first time that this group is going to be executed the value of this

6
00:00:21,540 --> 00:00:23,150
index variable is zero.

7
00:00:23,160 --> 00:00:23,740
OK.

8
00:00:23,970 --> 00:00:26,020
And then it's going I try to check this condition.

9
00:00:26,070 --> 00:00:29,150
So as you can see here the value of this index value bet is zero.

10
00:00:29,250 --> 00:00:33,890
So zero is less than the length of these float numbers right a.

11
00:00:34,130 --> 00:00:37,910
Million of these numbers Arai is actually 15.

12
00:00:38,040 --> 00:00:39,650
So 0 is less than 15.

13
00:00:39,690 --> 00:00:45,420
So this condition evaluates to true and then it can actually execute the lines of code that are actually

14
00:00:45,420 --> 00:00:47,010
inside of this for loop.

15
00:00:47,040 --> 00:00:49,670
So here we actually referred to the name of this array.

16
00:00:49,800 --> 00:00:52,690
Floats are numbers as you can see here.

17
00:00:52,830 --> 00:00:53,500
OK.

18
00:00:53,750 --> 00:00:56,010
And inside the brackets I said index.

19
00:00:56,070 --> 00:00:56,650
OK.

20
00:00:56,680 --> 00:00:58,870
So the index is 0.

21
00:00:58,890 --> 00:01:03,130
So it's going to actually go inside the index zero of these arii.

22
00:01:03,150 --> 00:01:03,980
OK.

23
00:01:04,500 --> 00:01:09,670
And then we can actually assign a value to the index zero of this hourly or key.

24
00:01:09,810 --> 00:01:15,030
So for example five plus three multiplied by index.

25
00:01:15,030 --> 00:01:18,320
And first of all let me actually explain this piece of code here.

26
00:01:18,420 --> 00:01:25,110
As I said before in the previous tutorials are the multiplication operator has higher precedence than

27
00:01:25,110 --> 00:01:27,840
the addition operator OK.

28
00:01:28,090 --> 00:01:34,050
So this piece of code here this operation is going to be executed first.

29
00:01:34,050 --> 00:01:34,510
OK.

30
00:01:34,650 --> 00:01:37,860
So this multiplication here is going to be executed first.

31
00:01:37,890 --> 00:01:38,730
So free.

32
00:01:38,820 --> 00:01:45,390
Multiply it by index and then the result of this operation is going to be added to this number.

33
00:01:45,390 --> 00:01:46,010
Number five.

34
00:01:46,020 --> 00:01:46,470
OK.

35
00:01:46,470 --> 00:01:51,600
So because multiplication operator has higher precedence than the plus operator.

36
00:01:51,720 --> 00:01:54,100
This piece of code is going to be executed first.

37
00:01:54,150 --> 00:01:59,660
The result of this operation is going to be added to this number five value.

38
00:01:59,660 --> 00:02:00,020
OK.

39
00:02:00,030 --> 00:02:01,410
Here let me explain again.

40
00:02:01,620 --> 00:02:05,720
Here I am actually referring to the name of this are a float numbers Ali.

41
00:02:06,030 --> 00:02:08,450
And here I am actually putting the index.

42
00:02:08,490 --> 00:02:09,140
OK.

43
00:02:09,450 --> 00:02:13,890
So for example the first time that this loop is going to be executed the value of this index variable

44
00:02:13,890 --> 00:02:14,760
is 0.

45
00:02:14,760 --> 00:02:16,010
So here it is 0.

46
00:02:16,200 --> 00:02:20,880
So and then it's actually assigned dissuade value to these are to the index zero of this Ari.

47
00:02:20,910 --> 00:02:21,380
OK.

48
00:02:21,510 --> 00:02:26,730
So first it's going to actually multiply number free by not by the value of this index.

49
00:02:26,730 --> 00:02:28,890
So the value of this index is zero.

50
00:02:28,980 --> 00:02:31,860
So free multiplied by zero is zero.

51
00:02:31,860 --> 00:02:34,770
And five plus zero is five.

52
00:02:34,980 --> 00:02:43,560
So the value of the index zero of this area is for example 5 and then it can actually increment the

53
00:02:43,560 --> 00:02:46,130
value of this index variable Bhagavan.

54
00:02:46,140 --> 00:02:51,390
So now the value of this index value bet is one and then it's going to actually check this condition.

55
00:02:51,390 --> 00:02:54,600
So if one is less than the value of the length of this array.

56
00:02:54,650 --> 00:02:55,200
OK.

57
00:02:55,290 --> 00:02:58,590
So it can actually execute this line of code here again.

58
00:02:58,590 --> 00:03:01,750
So now the value of this index what value of N is one.

59
00:03:01,860 --> 00:03:04,950
And now we want to actually assign a value to the index.

60
00:03:04,950 --> 00:03:13,350
One of these houri so free multiplied by 1 is free and five plus free is it.

61
00:03:13,350 --> 00:03:17,020
So 8 is the value that is inside of the index.

62
00:03:17,040 --> 00:03:18,410
One of these arii.

63
00:03:18,420 --> 00:03:18,800
OK.

64
00:03:18,810 --> 00:03:27,450
So hopefully that makes sense and let's actually create another for a loop here for an inside Apprentice's.

65
00:03:27,450 --> 00:03:29,820
Let's actually create a variable.

66
00:03:29,910 --> 00:03:30,540
OK.

67
00:03:30,540 --> 00:03:37,350
After this for loop Let's actually create another for look here inside this uncreate method and after

68
00:03:37,350 --> 00:03:38,360
these follow up here.

69
00:03:38,370 --> 00:03:38,820
OK.

70
00:03:38,850 --> 00:03:48,540
So typing here for an inside Apprentice's Let's actually create another variable in that index and assign

71
00:03:48,540 --> 00:03:51,330
the value zero to this index valuable.

72
00:03:51,630 --> 00:04:00,950
And here we need to actually create a condition here until index is less than float numbers are read

73
00:04:00,950 --> 00:04:02,990
at length semi-colon.

74
00:04:03,600 --> 00:04:08,620
And here I need to actually type in index plus plus.

75
00:04:08,640 --> 00:04:15,770
So after each execution of this for loop it can actually add one value to the value of this index variable.

76
00:04:15,780 --> 00:04:16,190
OK.

77
00:04:16,200 --> 00:04:23,000
So first here I want to actually instantiate these two string objects that I actually created here.

78
00:04:23,100 --> 00:04:23,760
OK.

79
00:04:23,760 --> 00:04:26,330
So here I just need to refer to the name of these objects.

80
00:04:26,340 --> 00:04:31,010
All it takes the index value assignment operator.

81
00:04:31,020 --> 00:04:35,870
Now I want to actually get the value of this TDX the index takes you.

82
00:04:36,060 --> 00:04:42,560
So I just need to type in here TXI index dot text dot to a string.

83
00:04:42,750 --> 00:04:43,350
OK.

84
00:04:43,350 --> 00:04:50,490
So because this object is actually strange we need to actually convert this value that we're actually

85
00:04:50,490 --> 00:04:52,560
getting from this the index.

86
00:04:52,600 --> 00:04:59,420
And it takes you to a string value so that we can actually assigned a value to this all the index value.

87
00:04:59,420 --> 00:04:59,870
OK.

88
00:05:00,210 --> 00:05:08,350
And let's actually instantiate our second object here all the value value assignment operator.

89
00:05:08,460 --> 00:05:13,420
So I can't just dive in here anti-X the value that it dot to a string.

90
00:05:13,560 --> 00:05:14,050
OK.

91
00:05:14,220 --> 00:05:19,190
Now let's actually output some values to these text views.

92
00:05:19,260 --> 00:05:24,100
So I can just type anti-X the index that said text.

93
00:05:24,300 --> 00:05:29,450
And first of all I want to actually output the value of these to all you exceed the value.

94
00:05:29,460 --> 00:05:34,350
First I want to actually output the value of this old TDX the index of value.

95
00:05:34,460 --> 00:05:36,170
Ok so I just need you type here.

96
00:05:36,190 --> 00:05:38,500
All Euxine the x value plus.

97
00:05:38,610 --> 00:05:41,690
And now I can just type in here.

98
00:05:42,030 --> 00:05:43,000
Index.

99
00:05:43,110 --> 00:05:49,560
So first I refer to the name of this object all the x x value that has this value the value that that

100
00:05:49,560 --> 00:05:52,680
is actually inside the T is the index takes text view.

101
00:05:52,920 --> 00:05:58,530
I am actually putting a plus operator in order to concatenate these two values together.

102
00:05:58,560 --> 00:06:02,780
And here I am actually referring to the name of the index variable.

103
00:06:02,820 --> 00:06:07,050
As you can see here in order to output the value of this index to the screen.

104
00:06:07,050 --> 00:06:07,410
OK.

105
00:06:07,470 --> 00:06:12,530
So here again it's actually typing takes the value that said text.

106
00:06:12,600 --> 00:06:19,020
And here I want to output the value of of these all the x the value value plus operator.

107
00:06:19,020 --> 00:06:26,270
Now I want to actually output the value that is inside of the index of these Aure.

108
00:06:26,490 --> 00:06:28,310
OK float numbers.

109
00:06:28,530 --> 00:06:32,800
So here I just need to refer to the name of this array sub index.

110
00:06:33,030 --> 00:06:34,860
OK array sub index.

111
00:06:34,890 --> 00:06:40,350
And this means give me the value that is inside of that index.

112
00:06:40,410 --> 00:06:41,230
OK.

113
00:06:41,670 --> 00:06:48,370
So as you know after each execution of this loop the value of this index variable is going to be incremented.

114
00:06:48,690 --> 00:06:53,180
So and that value is going to be in sight of these brackets.

115
00:06:53,190 --> 00:06:59,670
And then this line of code is going to actually output the value that is actually specific to that index.

116
00:06:59,670 --> 00:07:00,120
OK.

117
00:07:00,150 --> 00:07:06,000
So hopefully that makes sense and let's actually run our project and see what happens.

118
00:07:06,000 --> 00:07:11,210
So as you can see here now our application is actually running on this emulator here.

119
00:07:11,220 --> 00:07:16,200
And as you can see here we messed up things a little and we need to actually fix some of the issues

120
00:07:16,200 --> 00:07:19,350
that are actually related to the user interface.

121
00:07:19,350 --> 00:07:23,910
So first let's actually go back and say this content underline mean that made that example and here

122
00:07:24,080 --> 00:07:30,840
as you can see I need to click on this clear cache here and double click and this takes you and for

123
00:07:30,840 --> 00:07:37,740
the text just typing here index and double click on the stakes for you and for the text just type in

124
00:07:37,740 --> 00:07:45,690
here value and if you go back inside this main activity the java file here and here after this are index

125
00:07:45,780 --> 00:07:48,310
as you can see puts a plus operator.

126
00:07:48,570 --> 00:07:54,480
And here just put into double quotes and insert double quotes just putting a newline character OK.

127
00:07:54,560 --> 00:08:03,260
Pipeful slash and again do the same thing here plus operator to double quotes back for a slash and a

128
00:08:03,500 --> 00:08:04,120
shape.

129
00:08:04,140 --> 00:08:06,000
So now let's get to that on our project again.

130
00:08:06,060 --> 00:08:06,390
OK.

131
00:08:06,390 --> 00:08:11,080
Now as you can see here now we can actually see these values here on this screen.

132
00:08:11,100 --> 00:08:11,570
OK.

133
00:08:11,610 --> 00:08:12,780
Index value.

134
00:08:12,960 --> 00:08:16,080
So the value of this index 0 is 5.

135
00:08:16,140 --> 00:08:19,620
The value of this index one is 8 and so on.

136
00:08:19,620 --> 00:08:25,170
Here as you can see the value of this index 14 is 47.

137
00:08:25,170 --> 00:08:27,620
So let me actually explain again here.

138
00:08:27,640 --> 00:08:29,370
In the inside of this for loop.

139
00:08:29,370 --> 00:08:33,420
First of all you're actually instantiating these two string objects.

140
00:08:33,480 --> 00:08:40,300
And we're actually getting the value that is inside of this takes the index of a text.

141
00:08:40,320 --> 00:08:41,020
OK.

142
00:08:41,370 --> 00:08:43,660
And here again we are doing the same team.

143
00:08:43,710 --> 00:08:48,000
And we are actually getting the value that is inside of the X the value takes.

144
00:08:48,030 --> 00:08:48,460
OK.

145
00:08:48,510 --> 00:08:55,720
And here in line 42 I am actually setting some text to this text the index takes you.

146
00:08:55,800 --> 00:08:56,520
OK.

147
00:08:56,800 --> 00:08:57,300
And I am.

148
00:08:57,300 --> 00:09:02,220
First of all referring to the name of this all the x the index value plus index.

149
00:09:02,250 --> 00:09:07,710
And here I want to actually output the value of this index as you can see the value of this index as

150
00:09:07,710 --> 00:09:08,600
you can see here.

151
00:09:08,730 --> 00:09:09,420
OK.

152
00:09:09,900 --> 00:09:18,090
And here in line 43 I want to actually output the value that is inside of that specific index.

153
00:09:18,090 --> 00:09:18,510
OK.

154
00:09:18,570 --> 00:09:22,720
So for example the value that is inside of this index 0 is number five.

155
00:09:22,920 --> 00:09:23,470
OK.

156
00:09:23,610 --> 00:09:27,230
So let's actually delete these all the index value.

157
00:09:27,240 --> 00:09:28,650
And let's see what happens.

158
00:09:28,650 --> 00:09:35,250
So as you can see here now our application is actually running on the simulator and we cannot see the

159
00:09:35,250 --> 00:09:37,340
indexes before this number 14.

160
00:09:37,410 --> 00:09:37,950
OK.

161
00:09:38,100 --> 00:09:46,020
So that's the purpose of actually creating all Tillich's the next value we want to get the values before

162
00:09:46,030 --> 00:09:48,270
DS on index 14.

163
00:09:48,390 --> 00:09:48,850
OK.

164
00:09:48,900 --> 00:09:54,960
If you don't actually create this object you cannot see the values that were actually calculated before

165
00:09:54,960 --> 00:09:56,170
these index 14.

166
00:09:56,280 --> 00:09:56,940
OK.

167
00:09:57,330 --> 00:09:59,720
So you need to actually put this object here.

168
00:10:00,010 --> 00:10:08,370
In order to put out food the values before that of index 14 here as you can see now let's actually run

169
00:10:08,380 --> 00:10:09,300
our project again.

170
00:10:09,370 --> 00:10:15,510
And as you can see here again our application is running and we can see the index is a zero Freule number

171
00:10:15,520 --> 00:10:16,050
14.

172
00:10:16,070 --> 00:10:16,580
OK.

173
00:10:16,990 --> 00:10:24,430
And the job of this new line character is to actually to create a newline character after each execution

174
00:10:24,790 --> 00:10:29,730
of this line of code so that we can actually see the values here better.

175
00:10:29,800 --> 00:10:30,180
OK.

176
00:10:30,190 --> 00:10:33,730
But for example first of all it's going to actually execute this line of code and then it's going to

177
00:10:33,730 --> 00:10:38,680
actually out with the index zero to the screen.

178
00:10:38,860 --> 00:10:44,530
So after outputting this value here it's going to be putting a newline character here so that we can

179
00:10:44,800 --> 00:10:51,020
see the next value the next index after these are below this number zero here.

180
00:10:51,040 --> 00:10:51,360
OK.

181
00:10:51,370 --> 00:10:54,370
Number 1 2 3 and rule number 14.

182
00:10:54,430 --> 00:10:54,920
OK.

183
00:10:55,000 --> 00:10:58,330
So as you can see here we've got floating point numbers here.

184
00:10:58,390 --> 00:11:02,040
You can see that decimal points here and that the single digits.

185
00:11:02,120 --> 00:11:05,840
And here you can see that these values are floating point numbers.

186
00:11:05,860 --> 00:11:09,220
So I think that's enough for this utopia.

187
00:11:09,580 --> 00:11:14,530
If you have any questions please post the discussion in the course and then I'll do my best to answer

188
00:11:14,530 --> 00:11:15,290
your questions.

189
00:11:15,310 --> 00:11:15,700
OK.

190
00:11:15,760 --> 00:11:20,080
Thank you very much for watching and I'll see you in the next tutorial.

