1
00:00:00,750 --> 00:00:02,780
So here I just need to pasting.

2
00:00:02,790 --> 00:00:10,740
So as you can see here this is my I'll get her for this game name instance variable and the the access

3
00:00:10,740 --> 00:00:13,910
modifier of this method is actually public.

4
00:00:14,130 --> 00:00:17,110
The return type of this method is strange.

5
00:00:17,190 --> 00:00:17,790
OK.

6
00:00:17,970 --> 00:00:20,940
And the name of this method is good name.

7
00:00:20,950 --> 00:00:21,150
OK.

8
00:00:21,170 --> 00:00:24,230
And this method actually doesn't accept any arguments.

9
00:00:24,240 --> 00:00:24,740
OK.

10
00:00:24,990 --> 00:00:31,620
And instead of this Meffert we are just refer to the returning the value of this instance variable that

11
00:00:31,620 --> 00:00:34,580
we actually declared in line 9.

12
00:00:34,620 --> 00:00:35,420
OK.

13
00:00:35,760 --> 00:00:39,070
Now let's actually put in some lines of code here.

14
00:00:39,150 --> 00:00:41,930
So here I just want to create a method.

15
00:00:42,390 --> 00:00:44,660
So as you can see here this is my method.

16
00:00:44,820 --> 00:00:46,350
Actually I paste that here.

17
00:00:46,830 --> 00:00:50,280
And the access modifier of this method is public.

18
00:00:50,280 --> 00:00:52,440
The return type of this method is it.

19
00:00:52,530 --> 00:00:52,810
OK.

20
00:00:52,820 --> 00:00:56,880
And disbenefit needs to actually to return a value of type integer.

21
00:00:56,880 --> 00:00:59,710
The name of this method is get minimum score.

22
00:00:59,820 --> 00:01:00,080
OK.

23
00:01:00,090 --> 00:01:02,640
And this method actually doesn't accept any arguments.

24
00:01:02,640 --> 00:01:03,250
OK.

25
00:01:03,630 --> 00:01:09,270
And here inside of this Meffert these are actually our own implementations inside of this method.

26
00:01:09,270 --> 00:01:16,100
First of all I actually created a variable of type integer and the name of this variable is lowest score.

27
00:01:16,110 --> 00:01:16,540
OK.

28
00:01:16,620 --> 00:01:22,560
Assignment operator and here I actually referred to the name of this instance variable scores as you

29
00:01:22,560 --> 00:01:25,190
can see this is actually two dimensional array.

30
00:01:25,340 --> 00:01:31,920
OK as you can see here and here I am saying that go inside of that array and go inside of the index

31
00:01:31,980 --> 00:01:33,130
zero of that array.

32
00:01:33,210 --> 00:01:33,560
As you can.

33
00:01:33,600 --> 00:01:38,770
As you know are two dimensional arrays and actually arrays inside of an array.

34
00:01:38,840 --> 00:01:42,390
OK so if you have a raise inside of an array.

35
00:01:42,390 --> 00:01:47,290
OK so here is going to go inside of the index 0 of that array.

36
00:01:47,490 --> 00:01:51,320
So inside of that index zero of that array is actually another.

37
00:01:51,410 --> 00:01:51,970
OK.

38
00:01:52,050 --> 00:01:55,840
And then it's going to go inside of that index 0 of that and other.

39
00:01:55,870 --> 00:01:56,470
OK.

40
00:01:56,700 --> 00:01:57,920
Of that second area.

41
00:01:58,110 --> 00:02:00,550
And then it's going to give me a value of type integer.

42
00:02:00,600 --> 00:02:01,290
OK.

43
00:02:01,560 --> 00:02:03,180
And here I just created a comment.

44
00:02:03,180 --> 00:02:07,070
Assume this value is the smallest score value OK.

45
00:02:07,500 --> 00:02:11,910
And here is I actually created a for loop as you can see here.

46
00:02:12,100 --> 00:02:15,200
And first of all inside of the loop.

47
00:02:15,210 --> 00:02:19,150
So as you know this is an enhanced for loop.

48
00:02:19,350 --> 00:02:26,060
So I just created a variable of type integer and this variable is actually an array of type Integer.

49
00:02:26,310 --> 00:02:29,760
And as you can see the name of this area is game scores.

50
00:02:29,910 --> 00:02:36,410
And here is actually iterate over there are actually values that are inside of these scores.

51
00:02:37,230 --> 00:02:38,880
This is actually a two dimensional array.

52
00:02:38,880 --> 00:02:39,360
OK.

53
00:02:39,510 --> 00:02:44,120
So here we have a arrays inside we have arrows inside of an arrow.

54
00:02:44,130 --> 00:02:44,600
OK.

55
00:02:44,730 --> 00:02:50,130
So this is actually a one dimensional array and then it's going to iterate over the arrays that are

56
00:02:50,130 --> 00:02:52,270
actually inside of these two dimensional array.

57
00:02:52,290 --> 00:02:53,000
OK.

58
00:02:53,400 --> 00:02:59,520
And then it's going to actually we actually created another enhanced for loop inside of this loop as

59
00:02:59,520 --> 00:03:00,510
you can see here.

60
00:03:00,990 --> 00:03:04,780
And again we actually created an integer variable.

61
00:03:04,980 --> 00:03:13,020
And D Actually the type of this variable is integer and the name of this variable is school and it's

62
00:03:13,020 --> 00:03:18,340
going to either rate or the values that are actually inside of this game scores.

63
00:03:18,480 --> 00:03:20,600
OK so this is actually a one dimensional array.

64
00:03:20,610 --> 00:03:21,370
OK.

65
00:03:21,420 --> 00:03:26,770
It's going to iterate over the arrays that are inside of these two dimensional array.

66
00:03:26,820 --> 00:03:27,690
OK.

67
00:03:28,200 --> 00:03:32,440
And here inside of this for loop we created of an IF statement here.

68
00:03:32,580 --> 00:03:35,470
So if the value of this score variable.

69
00:03:35,700 --> 00:03:42,390
Ok if the value of the single variable is less than the value of this score lowest score here as you

70
00:03:42,390 --> 00:03:50,280
can see here then assign the value of this score variable to this lowest score and then return the value

71
00:03:50,280 --> 00:03:52,210
of this lowest score to me.

72
00:03:52,440 --> 00:03:53,450
OK.

73
00:03:53,910 --> 00:03:55,650
So hopefully that makes sense.

74
00:03:55,710 --> 00:04:00,850
That actually creates another method here as you can see I actually pasted this method here.

75
00:04:00,930 --> 00:04:02,360
Get maximum score.

76
00:04:02,460 --> 00:04:03,120
OK.

77
00:04:03,330 --> 00:04:09,420
And the access modifier of this method is Puplick the return type of this method is in.

78
00:04:09,450 --> 00:04:13,110
So this if it is actually going to return a value of type integer.

79
00:04:13,170 --> 00:04:13,810
OK.

80
00:04:14,130 --> 00:04:18,170
And the name of this method is get maximum score.

81
00:04:18,360 --> 00:04:18,930
OK.

82
00:04:19,110 --> 00:04:22,590
And if it actually doesn't accept any arguments.

83
00:04:22,710 --> 00:04:28,560
So here inside of this method I actually pasted my own implementations here.

84
00:04:28,680 --> 00:04:29,450
And as you can.

85
00:04:29,550 --> 00:04:37,620
As you can see I actually created an integer variable here and the name of this variable is highest

86
00:04:37,620 --> 00:04:38,230
score.

87
00:04:38,330 --> 00:04:38,970
OK.

88
00:04:39,270 --> 00:04:45,140
Assignment operator and again I referred to the name of these scores are two dimensional.

89
00:04:45,170 --> 00:04:48,580
Ari as you can see I declared this this array in line 10.

90
00:04:48,750 --> 00:04:49,310
OK.

91
00:04:49,550 --> 00:04:52,340
You referred to the name of the to the two dimensional array.

92
00:04:52,530 --> 00:04:57,130
And then it's going to actually go inside of this index zero of that array.

93
00:04:57,360 --> 00:05:03,120
So as yet as you know of two dimensional raise or actually raise inside of an array.

94
00:05:03,120 --> 00:05:03,690
OK.

95
00:05:03,960 --> 00:05:09,200
So it's going to actually go inside of the index zero of that array so index zero of this is actually

96
00:05:09,200 --> 00:05:13,820
an other rate and it's going to go inside of the index zero of that and other at a.

97
00:05:13,910 --> 00:05:14,220
OK.

98
00:05:14,230 --> 00:05:15,510
Of that second arey.

99
00:05:15,570 --> 00:05:19,070
So it's going to give me an integer variable and it is a number.

100
00:05:19,110 --> 00:05:19,910
OK.

101
00:05:20,280 --> 00:05:26,400
And here as you can see I created a comment and I said that isn't disvalue is the highest score value

102
00:05:26,450 --> 00:05:27,270
OK.

103
00:05:27,780 --> 00:05:32,040
And then here I created another for loop as you can see we have a for loop here.

104
00:05:32,550 --> 00:05:39,360
And again I actually created a variable actually of type integer array this is this is a one dimensional

105
00:05:39,420 --> 00:05:41,670
array as you can see game scores.

106
00:05:41,670 --> 00:05:47,840
And then you can actually iterate over the values over the alleys that are inside of this course area.

107
00:05:47,860 --> 00:05:48,450
OK.

108
00:05:48,480 --> 00:05:54,130
So these scores are a has outraise inside actually another array.

109
00:05:54,150 --> 00:05:59,060
So we have multiple one dimensional array.

110
00:05:59,760 --> 00:06:03,770
We have multiple one dimensional arrays inside of these scores.

111
00:06:04,160 --> 00:06:10,350
OK so here we created a one dimensional array so it's going to either rate over those arrays here inside

112
00:06:10,350 --> 00:06:11,310
of these scores.

113
00:06:11,320 --> 00:06:13,730
Eric this is a two dimensional array.

114
00:06:13,920 --> 00:06:16,200
And here we created another for loop.

115
00:06:16,410 --> 00:06:22,230
So here inside of the practices of this for loop I created another integer variable SCORE.

116
00:06:22,500 --> 00:06:28,710
This time it's going to actually iterate over the values that are inside of this game scores.

117
00:06:29,030 --> 00:06:29,900
OK.

118
00:06:30,360 --> 00:06:36,380
And then here I created another are actually of the if statement here.

119
00:06:36,390 --> 00:06:44,460
If the value of this score valuable is greater than the value of this highest score then assigned a

120
00:06:44,460 --> 00:06:50,010
value of this score variable to this highest score value of allocate and then return the value of its

121
00:06:50,010 --> 00:06:53,460
highest score variable to the color to the color of this method.

122
00:06:53,460 --> 00:06:54,170
OK.

123
00:06:54,420 --> 00:07:01,170
So here remember that this enhanced for is going to actually for example this this one here is going

124
00:07:01,350 --> 00:07:06,880
to iterate over the values that that and say that these scores are really this two dimensional array.

125
00:07:07,230 --> 00:07:12,840
And then he's going to assign every word every one of each of these are raised that are actually inside

126
00:07:12,840 --> 00:07:17,030
of this course array and then assign that value to these game scores.

127
00:07:17,220 --> 00:07:17,970
As you can see here.

128
00:07:18,000 --> 00:07:18,670
OK.

129
00:07:18,990 --> 00:07:23,640
And here again it's going to iterate over the values that are inside of this game scores array and then

130
00:07:23,640 --> 00:07:27,580
it's going to assign those values to these game score.

131
00:07:27,870 --> 00:07:30,200
I should add to the score value but ok.

132
00:07:30,360 --> 00:07:36,420
After each execution is going to assign that value to this score and then we are actually doing something

133
00:07:36,870 --> 00:07:42,520
inside of these for loop as you can see we create it up if and if statement here.

134
00:07:42,540 --> 00:07:48,180
If the value of the score value is greater than highest score then assign the value of the score variable

135
00:07:48,750 --> 00:07:54,160
to these high school value and then return the value of this highest score valuable to me.

136
00:07:54,300 --> 00:07:55,090
OK.

137
00:07:55,530 --> 00:07:57,520
So hopefully that makes sense.

138
00:07:57,780 --> 00:08:05,110
And let's actually create another Meffert So here I just want to create another method.

139
00:08:05,350 --> 00:08:09,740
So as you can see here this is my method here that they actually paste it here.

140
00:08:09,940 --> 00:08:17,230
And again the access modifier of this method is public to return type of this if it is double and the

141
00:08:17,230 --> 00:08:21,350
name of this method is get the average value of scores.

142
00:08:21,460 --> 00:08:21,910
OK.

143
00:08:22,030 --> 00:08:25,440
And this is actually to accept an argument of type integer array.

144
00:08:25,450 --> 00:08:26,190
OK.

145
00:08:26,500 --> 00:08:29,350
And the name of this area is scoreless.

146
00:08:29,410 --> 00:08:35,790
So it's going actually inside of this method as you can see these are actually our own implementations.

147
00:08:35,800 --> 00:08:44,090
And first of all in line 64 I created a variable of type integer and the name of this variable is total.

148
00:08:44,220 --> 00:08:44,500
OK.

149
00:08:44,500 --> 00:08:47,020
And then I assigned the value 0 to this.

150
00:08:47,080 --> 00:08:47,690
OK.

151
00:08:47,950 --> 00:08:50,290
And then I created a for loop here.

152
00:08:50,380 --> 00:08:51,230
OK.

153
00:08:51,580 --> 00:08:55,550
And here as you can see I created a comment some scores for each game.

154
00:08:55,720 --> 00:08:56,590
OK.

155
00:08:56,590 --> 00:09:01,360
And here it's going to actually be actually created and enhanced for loop and here as you can see I

156
00:09:01,360 --> 00:09:06,460
created a variable of type integer and then it's going to iterate over the values that are actually

157
00:09:06,460 --> 00:09:07,660
inside of these scores.

158
00:09:07,680 --> 00:09:14,290
Ari as you can see this is actually an argument here and here as you can see it can actually add the

159
00:09:14,290 --> 00:09:18,970
value of this total variable to the value of this is called a variable and then it can actually assign

160
00:09:19,240 --> 00:09:21,020
that value to this total value.

161
00:09:21,020 --> 00:09:21,540
But OK.

162
00:09:21,610 --> 00:09:26,740
So this line of code here is actually the same as that as this line of code that I am actually about

163
00:09:26,740 --> 00:09:27,420
to write here.

164
00:09:27,430 --> 00:09:27,870
OK.

165
00:09:27,880 --> 00:09:32,220
Total assignment operator total plus score.

166
00:09:32,290 --> 00:09:33,900
OK.

167
00:09:33,910 --> 00:09:40,320
And then here as you can see it's going actually at the value of this total valuable to the Caribbean.

168
00:09:40,330 --> 00:09:42,560
And then it's going to assign that value to the total value.

169
00:09:42,560 --> 00:09:47,990
But OK so after each execution of this for loop it's going to actually add those values to these are

170
00:09:48,580 --> 00:09:52,120
two values together and then it's going to assign that value to the total variable.

171
00:09:52,480 --> 00:09:57,990
And here in line are 72 as you can see we are actually returning this value.

172
00:09:58,120 --> 00:10:05,380
So as you can see I am here actually I am casting this value is valuable to our WRGA But as you can

173
00:10:05,380 --> 00:10:11,260
see because this variable is actually of type integer and that this variable is of type integer and

174
00:10:11,640 --> 00:10:15,920
the Smurfette actually needs to return a value of type double.

175
00:10:16,160 --> 00:10:16,770
OK.

176
00:10:17,080 --> 00:10:22,590
So here we needed to actually cast this value is valuable to a double variable.

177
00:10:22,690 --> 00:10:29,580
And here we are actually dividing this value by a value by the length of this value but as you can see

178
00:10:29,580 --> 00:10:30,640
it's called length.

179
00:10:30,880 --> 00:10:34,660
And then it's going to return the average value of these scores.

180
00:10:34,830 --> 00:10:35,280
OK.

