So here I just need to pasting.
So as you can see here this is my I'll get her for this game name instance variable and the the access
modifier of this method is actually public.
The return type of this method is strange.
OK.
And the name of this method is good name.
OK.
And this method actually doesn't accept any arguments.
OK.
And instead of this Meffert we are just refer to the returning the value of this instance variable that
we actually declared in line 9.
OK.
Now let's actually put in some lines of code here.
So here I just want to create a method.
So as you can see here this is my method.
Actually I paste that here.
And the access modifier of this method is public.
The return type of this method is it.
OK.
And disbenefit needs to actually to return a value of type integer.
The name of this method is get minimum score.
OK.
And this method actually doesn't accept any arguments.
OK.
And here inside of this Meffert these are actually our own implementations inside of this method.
First of all I actually created a variable of type integer and the name of this variable is lowest score.
OK.
Assignment operator and here I actually referred to the name of this instance variable scores as you
can see this is actually two dimensional array.
OK as you can see here and here I am saying that go inside of that array and go inside of the index
zero of that array.
As you can.
As you know are two dimensional arrays and actually arrays inside of an array.
OK so if you have a raise inside of an array.
OK so here is going to go inside of the index 0 of that array.
So inside of that index zero of that array is actually another.
OK.
And then it's going to go inside of that index 0 of that and other.
OK.
Of that second area.
And then it's going to give me a value of type integer.
OK.
And here I just created a comment.
Assume this value is the smallest score value OK.
And here is I actually created a for loop as you can see here.
And first of all inside of the loop.
So as you know this is an enhanced for loop.
So I just created a variable of type integer and this variable is actually an array of type Integer.
And as you can see the name of this area is game scores.
And here is actually iterate over there are actually values that are inside of these scores.
This is actually a two dimensional array.
OK.
So here we have a arrays inside we have arrows inside of an arrow.
OK.
So this is actually a one dimensional array and then it's going to iterate over the arrays that are
actually inside of these two dimensional array.
OK.
And then it's going to actually we actually created another enhanced for loop inside of this loop as
you can see here.
And again we actually created an integer variable.
And D Actually the type of this variable is integer and the name of this variable is school and it's
going to either rate or the values that are actually inside of this game scores.
OK so this is actually a one dimensional array.
OK.
It's going to iterate over the arrays that are inside of these two dimensional array.
OK.
And here inside of this for loop we created of an IF statement here.
So if the value of this score variable.
Ok if the value of the single variable is less than the value of this score lowest score here as you
can see here then assign the value of this score variable to this lowest score and then return the value
of this lowest score to me.
OK.
So hopefully that makes sense.
That actually creates another method here as you can see I actually pasted this method here.
Get maximum score.
OK.
And the access modifier of this method is Puplick the return type of this method is in.
So this if it is actually going to return a value of type integer.
OK.
And the name of this method is get maximum score.
OK.
And if it actually doesn't accept any arguments.
So here inside of this method I actually pasted my own implementations here.
And as you can.
As you can see I actually created an integer variable here and the name of this variable is highest
score.
OK.
Assignment operator and again I referred to the name of these scores are two dimensional.
Ari as you can see I declared this this array in line 10.
OK.
You referred to the name of the to the two dimensional array.
And then it's going to actually go inside of this index zero of that array.
So as yet as you know of two dimensional raise or actually raise inside of an array.
OK.
So it's going to actually go inside of the index zero of that array so index zero of this is actually
an other rate and it's going to go inside of the index zero of that and other at a.
OK.
Of that second arey.
So it's going to give me an integer variable and it is a number.
OK.
And here as you can see I created a comment and I said that isn't disvalue is the highest score value
OK.
And then here I created another for loop as you can see we have a for loop here.
And again I actually created a variable actually of type integer array this is this is a one dimensional
array as you can see game scores.
And then you can actually iterate over the values over the alleys that are inside of this course area.
OK.
So these scores are a has outraise inside actually another array.
So we have multiple one dimensional array.
We have multiple one dimensional arrays inside of these scores.
OK so here we created a one dimensional array so it's going to either rate over those arrays here inside
of these scores.
Eric this is a two dimensional array.
And here we created another for loop.
So here inside of the practices of this for loop I created another integer variable SCORE.
This time it's going to actually iterate over the values that are inside of this game scores.
OK.
And then here I created another are actually of the if statement here.
If the value of this score valuable is greater than the value of this highest score then assigned a
value of this score variable to this highest score value of allocate and then return the value of its
highest score variable to the color to the color of this method.
OK.
So here remember that this enhanced for is going to actually for example this this one here is going
to iterate over the values that that and say that these scores are really this two dimensional array.
And then he's going to assign every word every one of each of these are raised that are actually inside
of this course array and then assign that value to these game scores.
As you can see here.
OK.
And here again it's going to iterate over the values that are inside of this game scores array and then
it's going to assign those values to these game score.
I should add to the score value but ok.
After each execution is going to assign that value to this score and then we are actually doing something
inside of these for loop as you can see we create it up if and if statement here.
If the value of the score value is greater than highest score then assign the value of the score variable
to these high school value and then return the value of this highest score valuable to me.
OK.
So hopefully that makes sense.
And let's actually create another Meffert So here I just want to create another method.
So as you can see here this is my method here that they actually paste it here.
And again the access modifier of this method is public to return type of this if it is double and the
name of this method is get the average value of scores.
OK.
And this is actually to accept an argument of type integer array.
OK.
And the name of this area is scoreless.
So it's going actually inside of this method as you can see these are actually our own implementations.
And first of all in line 64 I created a variable of type integer and the name of this variable is total.
OK.
And then I assigned the value 0 to this.
OK.
And then I created a for loop here.
OK.
And here as you can see I created a comment some scores for each game.
OK.
And here it's going to actually be actually created and enhanced for loop and here as you can see I
created a variable of type integer and then it's going to iterate over the values that are actually
inside of these scores.
Ari as you can see this is actually an argument here and here as you can see it can actually add the
value of this total variable to the value of this is called a variable and then it can actually assign
that value to this total value.
But OK.
So this line of code here is actually the same as that as this line of code that I am actually about
to write here.
OK.
Total assignment operator total plus score.
OK.
And then here as you can see it's going actually at the value of this total valuable to the Caribbean.
And then it's going to assign that value to the total value.
But OK so after each execution of this for loop it's going to actually add those values to these are
two values together and then it's going to assign that value to the total variable.
And here in line are 72 as you can see we are actually returning this value.
So as you can see I am here actually I am casting this value is valuable to our WRGA But as you can
see because this variable is actually of type integer and that this variable is of type integer and
the Smurfette actually needs to return a value of type double.
OK.
So here we needed to actually cast this value is valuable to a double variable.
And here we are actually dividing this value by a value by the length of this value but as you can see
it's called length.
And then it's going to return the average value of these scores.
OK.