1
00:00:00,390 --> 00:00:04,260
So now I'm going to paste in some lines of code here inside the Smurfette.

2
00:00:04,260 --> 00:00:08,930
Change the text of saint or update button according to the situation here.

3
00:00:09,060 --> 00:00:11,760
And then I'm going to explain to you what's going on here.

4
00:00:11,790 --> 00:00:16,210
So as you can see here these are the lines of code that I pasted here.

5
00:00:16,230 --> 00:00:18,920
So here we have actually an if statement.

6
00:00:19,350 --> 00:00:22,380
And here as you can see inside the Prentice's of this statement.

7
00:00:22,380 --> 00:00:28,920
Here again I am using this takes you to this class in order to check whether this unique computer ID

8
00:00:28,920 --> 00:00:31,200
valuable is empty or not.

9
00:00:31,200 --> 00:00:31,680
Right.

10
00:00:31,680 --> 00:00:35,890
So if takes you Teal's that is empty.

11
00:00:36,030 --> 00:00:37,650
Junichi computer ID.

12
00:00:37,830 --> 00:00:45,120
So if this computer is actually an empty valuable then this expression here evaluates to true and it's

13
00:00:45,120 --> 00:00:49,740
going to go inside the curly braces of this statement and it's going to execute this line of code here

14
00:00:50,190 --> 00:00:52,660
PTEN send or update data.

15
00:00:52,830 --> 00:00:54,710
That said text.

16
00:00:54,870 --> 00:01:00,390
And here as you can see here instead of double quotes we are saying that produce a new computer and

17
00:01:00,390 --> 00:01:01,730
send it to server.

18
00:01:01,860 --> 00:01:02,490
Right.

19
00:01:02,520 --> 00:01:05,160
So here we want to change the text of this button.

20
00:01:05,180 --> 00:01:10,410
Let me show you the emulator here if you want to change change the takes of this button for this value.

21
00:01:10,440 --> 00:01:14,100
If this variable is actually empty.

22
00:01:14,190 --> 00:01:20,200
Right so this variable actually determines what is going to be the text of this button.

23
00:01:20,340 --> 00:01:25,440
If this value is empty then it's going to have this line of code here and it's going to put this value

24
00:01:25,710 --> 00:01:32,720
as the text of this button produce in your computer and send it to server else.

25
00:01:32,730 --> 00:01:37,440
So here is elist means that this computer ID is not empty right.

26
00:01:37,500 --> 00:01:40,340
So if this expression evaluates to false.

27
00:01:40,350 --> 00:01:43,630
This means that this computer ID is not empty.

28
00:01:43,650 --> 00:01:45,290
You can imply that here.

29
00:01:45,500 --> 00:01:49,280
So it's going to execute the SQL statement and it's going to actually execute this.

30
00:01:49,280 --> 00:01:53,250
Else this line of code here PTEN sent or update data.

31
00:01:53,250 --> 00:01:59,510
So here we are fed into this button that said text modify the used the computer data.

32
00:01:59,520 --> 00:02:04,350
So here we are saying that it's going to actually update the produce computer.

33
00:02:04,350 --> 00:02:04,910
OK.

34
00:02:05,220 --> 00:02:09,670
It's going to update the already created computer.

35
00:02:09,870 --> 00:02:11,460
So now that's you.

36
00:02:11,470 --> 00:02:15,120
Nobody is going to be the purpose of this function.

37
00:02:15,180 --> 00:02:23,250
As you can see now of you need to actually use this method here inside this method here produce in your

38
00:02:23,250 --> 00:02:25,000
computer and put it in the database.

39
00:02:25,080 --> 00:02:26,030
OK.

40
00:02:26,190 --> 00:02:31,980
So that's why I put this here so that when they use that actually it has created a new computer then

41
00:02:31,980 --> 00:02:34,610
it's going to check the text of this button.

42
00:02:34,620 --> 00:02:36,770
According to the situation.

43
00:02:36,980 --> 00:02:39,820
So hopefully that makes sense.

44
00:02:40,400 --> 00:02:42,460
And now this is on Meffert right.

45
00:02:42,650 --> 00:02:47,090
So if you need to add another method here so go inside the curly braces of this class.

46
00:02:47,110 --> 00:02:52,220
So before the end in curly braces this class I'm going to paste in some more lines of code here and

47
00:02:52,220 --> 00:02:55,530
then I'm going to explain to you what's going on here.

48
00:02:55,550 --> 00:02:58,460
So as you can see here this is our Meffert here.

49
00:02:58,460 --> 00:03:00,590
I pasted these lines of code here.

50
00:03:00,590 --> 00:03:05,450
So here we have our method and the access modifier of this method is private.

51
00:03:05,450 --> 00:03:11,510
The return type of this method is void and the name of this method is modified to produce the computer.

52
00:03:11,630 --> 00:03:17,480
So this method is going to actually update the already created computer right.

53
00:03:17,510 --> 00:03:19,300
It's going to update those data.

54
00:03:19,610 --> 00:03:21,080
So when we use it it'll make sense.

55
00:03:21,080 --> 00:03:22,980
I will explain it again.

56
00:03:23,000 --> 00:03:29,120
So now just look at the Smurfette modify the Prudy's computer and this method accepts some arguments.

57
00:03:29,120 --> 00:03:29,710
Right.

58
00:03:29,780 --> 00:03:32,880
The first argument is of types 3 in computer name.

59
00:03:32,900 --> 00:03:37,640
The second argument is a can of types 3 and it is computer power.

60
00:03:37,640 --> 00:03:40,860
Here we have another argument stored in your computer to speed.

61
00:03:41,210 --> 00:03:49,640
And this one strange computer ram strange computer screen strange computer keyboard and strange computer

62
00:03:49,640 --> 00:03:50,170
c.p.

63
00:03:50,210 --> 00:03:53,260
So these are the arguments of this method.

64
00:03:53,270 --> 00:03:55,920
So now let's actually go inside the curly braces of this method.

65
00:03:56,000 --> 00:03:59,780
And now I'm going to paste in some lines of code here.

66
00:03:59,960 --> 00:04:04,490
So as you can see here these are the lines of code that I pasted here.

67
00:04:04,520 --> 00:04:06,330
So look at this statement here.

68
00:04:06,470 --> 00:04:10,790
Inside Apprentice's of this statement as you can see we have an expression.

69
00:04:10,790 --> 00:04:17,900
And here we are saying that if not so as you can see here the exclamation mark here says not right.

70
00:04:17,930 --> 00:04:23,900
So here we are saying if not takes you to the list that is empty computer name.

71
00:04:23,900 --> 00:04:24,410
Right.

72
00:04:24,410 --> 00:04:26,430
So here you are referring to this argument.

73
00:04:26,480 --> 00:04:33,360
Here we are checking that whether this argument computer name is actually empty or not.

74
00:04:33,380 --> 00:04:39,920
If the user has actually passed an empty value to this method or not.

75
00:04:39,920 --> 00:04:42,490
So this is going to check that condition.

76
00:04:42,480 --> 00:04:46,670
Here for me here we are saying that if not take city list that is empty.

77
00:04:46,670 --> 00:04:53,140
Here we are saying that if the value of this argument is computer name which is of three it is not empty.

78
00:04:53,300 --> 00:04:56,110
It is not actually an empty value.

79
00:04:56,240 --> 00:05:01,650
Then this expression here evaluates to true and then it's going to go inside the curly braces of this

80
00:05:01,660 --> 00:05:03,710
if statement and execute these lines of code.

81
00:05:03,710 --> 00:05:06,380
Here inside the curly braces of this if statements.

82
00:05:06,660 --> 00:05:14,990
But if this computer name argument is actually an empty value this expression it evaluates to false.

83
00:05:14,990 --> 00:05:18,980
So this actually is exclamation mark here is very important here.

84
00:05:18,980 --> 00:05:25,550
It is saying that if not takes you to it that is empty computer name if the value of this computer name

85
00:05:25,580 --> 00:05:31,850
is not empty then in that case this expression evaluates to true and it's going to go inside the curly

86
00:05:31,850 --> 00:05:37,580
braces of this if statement and execute the lines of code that are inside the curly braces of this if

87
00:05:37,580 --> 00:05:38,490
statement.

88
00:05:38,690 --> 00:05:39,170
Right.

89
00:05:39,350 --> 00:05:43,020
So first you are taking that with this computer name right.

90
00:05:43,070 --> 00:05:45,820
This argument is actually empty or not.

91
00:05:45,920 --> 00:05:51,170
If it is empty then it's not going to execute this if statement if it is not empty then it's going to

92
00:05:51,170 --> 00:05:53,730
go inside the curly braces of this if statement.

93
00:05:53,870 --> 00:05:57,800
So here I am referring to this database reference.

94
00:05:57,830 --> 00:05:58,430
Right.

95
00:05:58,490 --> 00:06:04,910
So the state of his offense I told you actually already is already referring to the computers category.

96
00:06:04,940 --> 00:06:07,590
So they have a self-install child.

97
00:06:07,760 --> 00:06:13,370
So it's going to actually create a child inside that category which is this one unique computer ID.

98
00:06:13,700 --> 00:06:20,950
And here as you can see here again we are treating this Janish computer ID as a child right.

99
00:06:20,960 --> 00:06:27,700
So databased reference that child Janish computer ID dot to hide Junichi computer.

100
00:06:27,710 --> 00:06:32,270
So this unique computer ID now is actually up Chatterley right.

101
00:06:32,300 --> 00:06:37,890
So here we are creating a unique computer ID as the child of the computer skeptically.

102
00:06:37,970 --> 00:06:40,600
And then here you are creating another child.

103
00:06:40,670 --> 00:06:46,550
So here we are treating the unit the computer ID as a category right that child.

104
00:06:46,670 --> 00:06:53,660
And now as you can see here we are specifying the key or the name which is computer name dot said value

105
00:06:53,780 --> 00:06:55,340
computer name.

106
00:06:55,340 --> 00:06:55,830
Right.

107
00:06:55,850 --> 00:07:01,580
So here in this vein we can actually update our database in the Firebrace.

108
00:07:01,610 --> 00:07:02,230
Right.

109
00:07:02,570 --> 00:07:09,170
So here now after this if statement so I'm going to paste some more lines of code here.

110
00:07:09,170 --> 00:07:14,270
So after the curly brace of this statement and inside the Smurfette I'm going to paste in some more

111
00:07:14,270 --> 00:07:15,600
lines of code here.

112
00:07:15,890 --> 00:07:21,780
So as you can see here these are the lines of code that I pasted inside this method modified to produce

113
00:07:21,780 --> 00:07:23,150
the computer.

114
00:07:23,300 --> 00:07:26,470
And now as you can see here again we have another statement.

115
00:07:26,600 --> 00:07:32,730
And here we are saying that if again not take cities that is empty computer power.

116
00:07:32,750 --> 00:07:37,030
So as you can see here I am fairly in to this arguments computer power.

117
00:07:37,250 --> 00:07:40,090
If not take snootiness that is into computer power.

118
00:07:40,160 --> 00:07:44,190
If the value of this computer power argument is not empty.

119
00:07:44,330 --> 00:07:44,830
Right.

120
00:07:44,920 --> 00:07:51,380
If the value that is passed to this method computer power this value is not empty then it's going to

121
00:07:51,380 --> 00:07:56,780
go inside the curly braces of the if statement and it's going to execute these lines of code here.

122
00:07:56,930 --> 00:07:57,930
Right.

123
00:07:57,980 --> 00:08:03,400
So as you can see here inside this statement we have this try catch block.

124
00:08:03,650 --> 00:08:06,050
So let's look at this try tribal like here.

125
00:08:06,050 --> 00:08:11,620
So try and inside the curly braces of this try black as you can see we have some lines of code here.

126
00:08:11,720 --> 00:08:18,320
So here first of all in line number 200 we are creating a variable which is of type integer and the

127
00:08:18,320 --> 00:08:22,420
name of this variable is computer power in value.

128
00:08:22,430 --> 00:08:23,020
Right.

129
00:08:23,090 --> 00:08:31,760
Assignment operator and here I told you that this computer power when I actually create an object of

130
00:08:31,760 --> 00:08:38,530
type A computer the value of the computer power is actually an integer value right.

131
00:08:38,570 --> 00:08:43,110
So here we created up an argument which is of types 3.

132
00:08:43,190 --> 00:08:48,620
So we need to convert that stream value to an integer value.

133
00:08:48,620 --> 00:08:49,240
Right.

134
00:08:49,250 --> 00:08:51,150
So that's what we are doing here.

135
00:08:51,270 --> 00:08:57,760
In line number 200 We have a variable and the name of this variable is actually computer power into

136
00:08:57,770 --> 00:09:00,200
value assignment operator.

137
00:09:00,380 --> 00:09:04,390
And then here I am referring to the name of this class Integer right.

138
00:09:04,550 --> 00:09:08,440
Integer dot parts in it.

139
00:09:08,480 --> 00:09:11,840
So here I am calling this method on this class parse.

140
00:09:11,870 --> 00:09:16,350
So this method is going to actually convert a string value to an integer value.

141
00:09:16,350 --> 00:09:22,370
This is going to accept an argument of types 3 in and is going to convert That's think value to an integer.

142
00:09:22,610 --> 00:09:25,790
And that's the value still must be an integer.

143
00:09:25,790 --> 00:09:31,910
When I actually passed that integer value to add to it it takes that would be actually a string value.

144
00:09:31,970 --> 00:09:32,580
Right.

145
00:09:32,630 --> 00:09:38,510
So if you want to actually be converted to an integer value so integer that parsed means computer power

146
00:09:38,750 --> 00:09:44,720
as you can see here I am passing this computer powered argument to the Smurfette So it's going to convert

147
00:09:44,840 --> 00:09:51,200
that value to actually an integer value if that value is actually integer if that value is not integer

148
00:09:51,230 --> 00:09:54,410
then it's going to actually execute this catch block.

149
00:09:54,410 --> 00:09:57,550
It's not going to actually execute this triple-X here anymore.

150
00:09:57,650 --> 00:09:59,450
It's going to execute these chats.

151
00:09:59,480 --> 00:10:03,400
And in this case we can actually catch this error large.

152
00:10:03,420 --> 00:10:04,210
All right.

153
00:10:04,280 --> 00:10:09,230
And then first I need to specify the tag and for the second argument I can't just say I can refer to

154
00:10:09,230 --> 00:10:11,670
the name of this argument exception.

155
00:10:11,690 --> 00:10:13,320
So here let's change it to eat.

156
00:10:13,520 --> 00:10:18,060
And here I can say eat that gets message semicolon.

157
00:10:18,290 --> 00:10:18,710
Right.

158
00:10:18,800 --> 00:10:23,930
So in this way we can catch the error and put it in the console so that we can actually see that error

159
00:10:24,080 --> 00:10:25,350
and solved the error.

160
00:10:25,550 --> 00:10:29,990
But now as you can see here we can't put it in the console.

161
00:10:30,510 --> 00:10:36,140
And for example in the console it says that the value was not integer and the computer was not able

162
00:10:36,140 --> 00:10:39,280
to actually convert it to an integer value.

163
00:10:39,440 --> 00:10:43,340
But our application is not going to crash if we Cheche that error.

164
00:10:43,340 --> 00:10:50,480
So it is very important that you put your codes that are actually throwing errors that may be throwing

165
00:10:50,540 --> 00:10:55,830
errors inside the church catch block so that later your application may not crash.

166
00:10:55,850 --> 00:10:56,810
This is very important.

167
00:10:56,810 --> 00:10:59,240
You don't want your application to crash.

168
00:10:59,270 --> 00:11:05,120
So now as you can see here integer parts into computer power and it's going to actually convert that

169
00:11:05,120 --> 00:11:10,210
value to an integer value and it's going to assign that value to this computer power into value and

170
00:11:10,270 --> 00:11:12,520
in line number of 210.

171
00:11:12,730 --> 00:11:15,740
As you can see here I am referring to this database reference here.

172
00:11:15,770 --> 00:11:21,220
Again this database reference is already referring to a category called computers.

173
00:11:21,290 --> 00:11:22,190
Right.

174
00:11:22,400 --> 00:11:25,060
We put that code inside our uncreate Meffert.

175
00:11:25,110 --> 00:11:29,570
So now let me actually show you that code here let me scroll to the top here inside this uncreate Meffert

176
00:11:29,840 --> 00:11:34,880
as you can see here we put this line of code here database so friends firebase database instance that

177
00:11:34,880 --> 00:11:36,530
gets reference computers.

178
00:11:36,530 --> 00:11:40,100
So now this database of friends is referring to these computers theatrically.

179
00:11:40,130 --> 00:11:45,190
So everything we add to the state of his defense is going to be added to this computers category right.

180
00:11:45,290 --> 00:11:52,830
So now let's actually scroll down here inside our own Meffert here again database reference inside Israel

181
00:11:52,920 --> 00:11:55,490
black database or friends that type.

182
00:11:55,700 --> 00:11:58,820
So I am referring to the computers category.

183
00:11:58,820 --> 00:12:04,420
I am here creating a child for that computers category unique computer ID.

184
00:12:04,670 --> 00:12:06,390
So this is the type of that category.

185
00:12:06,440 --> 00:12:10,510
And here again I called this child Meffert undischarged.

186
00:12:10,520 --> 00:12:16,700
So what I want to actually treat this idea Junichi computer ID as a category.

187
00:12:16,820 --> 00:12:18,730
So that child computer power.

188
00:12:18,740 --> 00:12:20,530
So this is going to be the key.

189
00:12:20,660 --> 00:12:24,570
And Dot said value computer power in value.

190
00:12:24,590 --> 00:12:32,610
Here we are updating the value of this computer power key right so in this way you can update your values

191
00:12:32,610 --> 00:12:34,130
in the database.

192
00:12:35,430 --> 00:12:39,270
So now we have this statement here right.

193
00:12:39,270 --> 00:12:44,700
So after the end curly brace of this statement now I'm going to actually paste in some more lines of

194
00:12:44,700 --> 00:12:45,090
code here.

195
00:12:45,090 --> 00:12:49,740
Inside this method and then I'm going to explain to you what's going on here.

196
00:12:50,100 --> 00:12:55,860
So as you can see here these are the lines of code that I pasted here inside the Smurfette.

197
00:12:55,860 --> 00:12:56,590
Right.

198
00:12:56,610 --> 00:13:03,750
So here again we have an order statement and here we are saying that if again not takes you to use that

199
00:13:03,750 --> 00:13:05,460
is empty computer speed.

200
00:13:05,460 --> 00:13:08,750
So as you can see here look at these arguments computer speed of typesetting.

201
00:13:08,750 --> 00:13:09,320
Right.

202
00:13:09,390 --> 00:13:09,740
Right.

203
00:13:09,750 --> 00:13:14,910
So if not it a utility that is empty computer to speed then it's going to go inside the curly braces

204
00:13:14,910 --> 00:13:19,970
of this if statement and it's going to actually execute this try catch block here.

205
00:13:20,130 --> 00:13:25,950
So look at this trip like here is try and inside the curly braces of this Troy block we have these lines

206
00:13:25,950 --> 00:13:27,190
of code here.

207
00:13:27,330 --> 00:13:28,940
Try it.

208
00:13:29,400 --> 00:13:34,090
Computer speed in value as you can see here we have actually an integer value.

209
00:13:34,090 --> 00:13:37,410
Again this integer Raddy of an assignment operator.

210
00:13:37,410 --> 00:13:41,240
And here we are calling this integer class that parse into computer speed.

211
00:13:41,370 --> 00:13:45,800
So it's going to actually convert this computer to speed which is of type integer.

212
00:13:45,800 --> 00:13:49,120
Look at this argument computer the speed of type of type stream.

213
00:13:49,200 --> 00:13:49,820
Right.

214
00:13:49,860 --> 00:13:56,500
So it's going to actually convert this computer speed which is of type strange an integer value.

215
00:13:56,560 --> 00:13:57,450
Right.

216
00:13:57,540 --> 00:14:01,460
And then it's going to actually assign an integer value to this computer to speed into value.

217
00:14:01,740 --> 00:14:09,300
And if this piece of code here cannot convert this computer speed string value to an integer value then

218
00:14:09,300 --> 00:14:11,760
it's going to actually execute this catch block right.

219
00:14:11,760 --> 00:14:16,530
It's not going to execute the try block anymore and it's going to actually catch that error.

220
00:14:16,530 --> 00:14:19,810
So and then I can actually catch the error here.

221
00:14:19,840 --> 00:14:21,390
Lock thoughts.

222
00:14:21,960 --> 00:14:24,890
And first I need to specify that page comma.

223
00:14:25,230 --> 00:14:28,600
And here let's change the name of this argument to eat.

224
00:14:29,220 --> 00:14:32,430
So eat thought get message semicolon.

225
00:14:32,610 --> 00:14:34,470
So here inside is Troy block.

226
00:14:34,470 --> 00:14:40,050
Again we are referring to the database defense which is already referring to the computers category

227
00:14:40,050 --> 00:14:43,270
in the database and in the server on the server.

228
00:14:43,410 --> 00:14:45,760
So database are Friendster child.

229
00:14:46,110 --> 00:14:52,860
So the height of these database surface which is actually fed into the computer is critical it is going

230
00:14:52,860 --> 00:14:54,170
to be you in each computer.

231
00:14:54,180 --> 00:14:55,130
So this is the name.

232
00:14:55,140 --> 00:14:57,360
This is the key of that type.

233
00:14:57,660 --> 00:15:05,720
And here because we want to actually treat that idea that you need computer ID as a category.

234
00:15:05,800 --> 00:15:09,130
Here you are calling the child on that category.

235
00:15:09,220 --> 00:15:15,710
So database reference that child unit computer ID touch child computer Spaeth here you are referring

236
00:15:15,710 --> 00:15:23,260
to the computer speed key data sets value computer speed and value as you can see here because we want

237
00:15:23,260 --> 00:15:26,900
to actually update an integer value here as you can see.

238
00:15:27,160 --> 00:15:31,510
We actually converted that computer to speed to an integer value.

239
00:15:31,510 --> 00:15:32,680
Right.

240
00:15:32,740 --> 00:15:34,450
So hopefully that makes sense.

241
00:15:34,450 --> 00:15:39,630
And after the ending curly brace of this IIF statement as you can see here inside the Smurfette I'm

242
00:15:39,630 --> 00:15:44,620
going to actually pasting some more lines of code here and then I'm going to explain to you what's going

243
00:15:44,620 --> 00:15:45,880
on here.

244
00:15:45,910 --> 00:15:50,700
So as you can see here these are the lines of code that I pasted here.

245
00:15:50,890 --> 00:15:54,270
So here we have this IIF statement and here we are checking that.

246
00:15:54,280 --> 00:16:00,040
If not takes you to realize that is empty computer around here we are saying that if these arguments

247
00:16:00,040 --> 00:16:04,270
computer RAM which is actually of type strange as you can see here.

248
00:16:04,270 --> 00:16:05,630
This is actually an argument right.

249
00:16:05,650 --> 00:16:13,560
Computer crime types think this computer RAM which is of pipes three inch is not empty then it is expression

250
00:16:13,570 --> 00:16:19,730
here evaluates to true and it's going to actually execute the lines of code inside this if statement.

251
00:16:19,810 --> 00:16:21,030
As you can see here.

252
00:16:21,130 --> 00:16:24,820
So here we have this a try block here as you can see.

253
00:16:24,940 --> 00:16:30,740
So try and as you can see inside the curly braces of this trade like we have these lines of code here.

254
00:16:30,910 --> 00:16:38,920
First of all as you can see the low number of 232 we have this variable which is a five integer Computerland

255
00:16:38,950 --> 00:16:41,830
into value assignment operator.

256
00:16:42,160 --> 00:16:46,410
And here I am referring to the name of this class Integer that parse.

257
00:16:46,460 --> 00:16:52,280
And so this Smurfette is going to actually convert this computer ram argument which is of types 3 inch

258
00:16:52,280 --> 00:16:58,600
to an integer value integer parts in a computer RAM and it's going to actually convert that string value

259
00:16:58,600 --> 00:16:59,480
to an integer value.

260
00:16:59,480 --> 00:17:06,040
But if this doesn't happen and if this method here fails then it's going to execute this catch statement

261
00:17:06,040 --> 00:17:06,390
here.

262
00:17:06,410 --> 00:17:10,220
This catch block and it's going to actually catch the catch the error.

263
00:17:10,330 --> 00:17:14,150
So here inside this catch block I can say LUGG thought Oh.

264
00:17:14,680 --> 00:17:21,250
And here inside the prentices first I need to specify the task and then I need to specify that I want

265
00:17:21,250 --> 00:17:22,090
to try to get the error.

266
00:17:22,090 --> 00:17:24,120
So let's change these are two.

267
00:17:24,700 --> 00:17:27,250
And here I can see that gets message.

268
00:17:27,340 --> 00:17:29,590
Semicolon exception right.

269
00:17:29,960 --> 00:17:36,760
And now as you can see here of when this happens when this piece of code here is actually executed successfully

270
00:17:36,760 --> 00:17:38,500
without any errors.

271
00:17:38,500 --> 00:17:45,430
And if this computer is actually converted to an integer value here then it's going to assign that integer

272
00:17:45,430 --> 00:17:52,930
value to the computer ran into value and now look at this line of code here in line number 234 database

273
00:17:52,930 --> 00:17:56,170
reference that child unique computer.

274
00:17:56,170 --> 00:18:01,990
So here you are referring to the height of that computer is critical to Junichi computer ID but child

275
00:18:02,260 --> 00:18:05,070
computer ram as you can see here is key.

276
00:18:05,230 --> 00:18:09,710
And here we are updating devalues set value computer right into value.

277
00:18:09,820 --> 00:18:10,280
Right.

278
00:18:10,420 --> 00:18:17,890
So when that user passes an integer value here they can actually update the value of that computer inside

279
00:18:17,890 --> 00:18:19,830
that unit computer ID category.

280
00:18:19,840 --> 00:18:22,790
So that's the job of this statement.

281
00:18:23,090 --> 00:18:30,040
And now after the ending curly brace of this statement as you can see here after the curly brace of

282
00:18:30,040 --> 00:18:35,590
this statement I'm going to pasting some names of some lines I've got here and then I'm going to explain

283
00:18:35,590 --> 00:18:38,200
to you what's going on here.

284
00:18:38,230 --> 00:18:43,030
So as you can see here these are the lines of code that I've pasted here.

285
00:18:43,210 --> 00:18:45,060
We have actually an if statement.

286
00:18:45,160 --> 00:18:51,270
And here again we are saying that if not Tick's utils that is empty computer screen.

287
00:18:51,340 --> 00:18:54,560
Here we are taking that video to this computer the screen argument.

288
00:18:54,580 --> 00:18:59,800
So as you can see here if I scroll to the top here look at the Smurfette we have this computer screen

289
00:18:59,860 --> 00:19:01,130
Argive arguments right.

290
00:19:01,300 --> 00:19:07,330
So here you are taking that whether this argument is actually an empty value or not if it is empty then

291
00:19:07,330 --> 00:19:09,940
it's not going to actually execute this statement.

292
00:19:09,940 --> 00:19:10,470
Right.

293
00:19:10,550 --> 00:19:15,590
But it is not empty then it's then the expression evaluates to true.

294
00:19:15,850 --> 00:19:19,210
And it's going to go inside the curly braces of this statement.

295
00:19:19,360 --> 00:19:26,110
And this is and it's going I should say this line of code your database reference that child as you

296
00:19:26,110 --> 00:19:26,850
can see here.

297
00:19:26,980 --> 00:19:33,640
So here I am actually specifying the child of our computers category which is a unique computer ID and

298
00:19:33,640 --> 00:19:39,070
that I am referring to the key computer the screen and that I am calling that set value you computer

299
00:19:39,070 --> 00:19:41,590
the screen as you can see here this argument.

300
00:19:41,590 --> 00:19:46,120
So in this way we can actually update the value of our computer screen.

301
00:19:46,690 --> 00:19:52,180
So now after this if statement and insight is Millford again I'm going to pasting some more lines of

302
00:19:52,180 --> 00:19:53,060
code here.

303
00:19:53,380 --> 00:19:58,010
So as you can see here these are the lines of code that I've pasted here.

304
00:19:58,150 --> 00:20:00,210
So again we have actually an if statement.

305
00:20:00,250 --> 00:20:05,200
And here we are thinking that whether this actually the computer keyboard is empty or not.

306
00:20:05,300 --> 00:20:09,950
So if not take a city that is empty computer keyboard.

307
00:20:10,010 --> 00:20:13,030
So here we are referring to this argument which is of tapes 3.

308
00:20:13,100 --> 00:20:14,830
So look at this argument here.

309
00:20:14,930 --> 00:20:16,280
This is the best thing right.

310
00:20:16,280 --> 00:20:22,370
So here you are saying that if this argument is actually an empty value then it's not going to execute

311
00:20:22,370 --> 00:20:23,500
this statement.

312
00:20:23,650 --> 00:20:24,110
OK.

313
00:20:24,170 --> 00:20:30,890
But if these computer keyboard argument is not an empty value then it's going to go inside the curly

314
00:20:30,890 --> 00:20:35,510
braces of this if statement and it's going to secure the sign I've got here a database reference that

315
00:20:35,530 --> 00:20:36,410
child.

316
00:20:36,650 --> 00:20:41,810
So here we are referring to the child of our database offense which is already referring to the computers

317
00:20:41,810 --> 00:20:42,670
category.

318
00:20:42,800 --> 00:20:46,180
So the child is unique computer ID that child.

319
00:20:46,220 --> 00:20:51,180
And here I am referring to the actor the name to the key computer keyboard.

320
00:20:51,200 --> 00:20:55,270
And here I am updating that set value in a computer keyboard.

321
00:20:55,460 --> 00:20:56,130
Right.

322
00:20:56,480 --> 00:21:01,610
So in this way we can actually update the value of this key inside this unique computer ID category

323
00:21:01,670 --> 00:21:04,280
inside these computer skeptically.

324
00:21:04,280 --> 00:21:07,200
So when I run my project you will see how this works.

325
00:21:07,550 --> 00:21:11,140
And now I'm going to actually paste in some more lines of code here.

326
00:21:11,240 --> 00:21:15,060
So as you can see here these are the lines of code that you pasted here.

327
00:21:15,200 --> 00:21:18,850
So again we have an if statement here inside this method.

328
00:21:19,070 --> 00:21:24,220
And here we are taking that if not takes you to list that is empty computer CPQ.

329
00:21:24,230 --> 00:21:27,550
So here we are taking that with this computer you argument.

330
00:21:27,560 --> 00:21:29,470
So now let me show you the argument here.

331
00:21:29,720 --> 00:21:34,160
So as you can see here this is our computer C-p arguments right which is that I think.

332
00:21:34,430 --> 00:21:40,100
So here we are checking that whether this computer C.P.R. argument is actually an empty value then it's

333
00:21:40,100 --> 00:21:45,890
not going to execute this if statement but if not takes you to the list that is empty computer.

334
00:21:46,040 --> 00:21:51,170
If this computer You argument is not an empty value then it's going to go inside the curly braces of

335
00:21:51,170 --> 00:21:55,950
this if statement and it's going to go and and actually execute this thing in I've got here database

336
00:21:55,990 --> 00:21:57,380
reference that child.

337
00:21:57,380 --> 00:22:03,590
So here I am referring to the height of our actually computers category which is this one unit computer

338
00:22:03,590 --> 00:22:08,950
ID and then we are calling this the height of that ID which is computers.

339
00:22:09,110 --> 00:22:09,940
This is the key.

340
00:22:10,100 --> 00:22:16,510
And then here we are updating the value of Diski computer Seip you that set value a computer CPQ right.

341
00:22:17,610 --> 00:22:22,230
So now I'm going to pasting some more lines of code here inside this class.

342
00:22:22,230 --> 00:22:22,730
OK.

343
00:22:22,770 --> 00:22:27,810
So after the ending curly brace of the Smurfit as you can see here we get this method modified to produce

344
00:22:27,810 --> 00:22:28,490
computer.

345
00:22:28,620 --> 00:22:34,110
So after the ending curly brace of the Smif and before the ending curly brace of this class.

346
00:22:34,230 --> 00:22:38,090
So inside this class I'm going to paste in some lines of code here.

347
00:22:38,280 --> 00:22:41,860
So as you can see here these are the lines of code that I pasted here.

348
00:22:41,940 --> 00:22:48,480
We have actually a method to write the axis modifier of this if it is private the return type of this

349
00:22:48,510 --> 00:22:53,040
method is void and the name of the sum if it is computed they change listener.

350
00:22:53,160 --> 00:22:53,700
Right.

351
00:22:53,880 --> 00:22:56,610
So now let's get you to go inside the curly braces of the Smurfette.

