So here as you can see I am actually either reading over the values that are inside of these numbers
Ali and that here I am just adding those values to this.
Our total value variable.
So this line of code here is actually the same as this line of code here.
Total value assignment operator total value plus value.
OK.
So let me actually comment with this line of code here.
And here in line for the free I am returning the division.
The result of the Division of these are two numbers.
Total value divided by the length of these numbers array.
So now let's actually use this method here.
So as you can see here here I just typed in here takes the average value.
I deferred to the name of this object.
The average value to a text.
OK.
Get the average value.
So here I just called the Smurfette this in for the actual returns of value of integer k get the average
value in Ari.
OK so this if it actually accepts an integer array here as you can see I referred to the name of this
error here and here I actually converted this value to a string value.
So now it's actually on our project and see what happens.
So here as you can see now our application is running on the simulator and the average value is number
26.
OK.
So this value is the average value of these numbers here.
As you can see inside of this scroll view here these values are actually the values that are actually
inside of this in here.
OK.
So hopefully that makes sense.
That's actually the comment out this line of code here.
And let's let's actually type in here thinks the Army values.
OK.
That said text.
And again this actually refers to the name of this Meffert get the average value.
And here I can actually put in unlimited number of values integer values to this method.
OK as an argument here.
OK.
For example I can't just type PIN number 4 quote comma 5 comma 7 and let's actually run our project
and see what happens.
And here I just pasting a line of code and then I'll explain to you what's going on here OK.
So as you can see here I just pasting this line of code here it takes the average value I referred to
the name of this dx the average value object that set text at inside Apprentice's of this method I referred
to the name of this Benford.
As you can see that is created in line 49.
OK.
Get the average value.
And here as you can see I assigned these values as actually arguments to the Smurfette the cake.
So as you can see here this disbenefit actually can accept unlimited integer numbers as an argument.
Ok as arguments.
So as you can see here I assign number 2 4 6 six or I could actually assign other values 5 9 10.
OK I can actually assign unlimited number numbers of integer integer numbers to this method.
Now let's actually run our project and see what happens.
So here as you can see our application is running on this emulator and we can see this value here.
The average value is number 6.
So this value is actually the average value of these numbers.
OK.
2 4 6 5 9 10.
OK.
I could actually assign other values.
Number 15 25 40 or other values.
OK.
So let's actually run our project and here as you can see we can see this value here.
The average value is number 11.
The average of these values that are actually inside of the prentices of the Smurfit.
So hopefully that makes sense.
And if you have any questions please post the discussion in the course and then I'll do my best to answer
all of your questions.
Thank you very much for watching and I'll see you in the next year.
Tauriel.