So first of all are we fair to the name of this array.
Floats numbers are a ok and then I need to actually be in a pair of brackets after my name.
And here I need to actually putting this index here index.
OK.
And this means for example the first time that this group is going to be executed the value of this
index variable is zero.
OK.
And then it's going I try to check this condition.
So as you can see here the value of this index value bet is zero.
So zero is less than the length of these float numbers right a.
Million of these numbers Arai is actually 15.
So 0 is less than 15.
So this condition evaluates to true and then it can actually execute the lines of code that are actually
inside of this for loop.
So here we actually referred to the name of this array.
Floats are numbers as you can see here.
OK.
And inside the brackets I said index.
OK.
So the index is 0.
So it's going to actually go inside the index zero of these arii.
OK.
And then we can actually assign a value to the index zero of this hourly or key.
So for example five plus three multiplied by index.
And first of all let me actually explain this piece of code here.
As I said before in the previous tutorials are the multiplication operator has higher precedence than
the addition operator OK.
So this piece of code here this operation is going to be executed first.
OK.
So this multiplication here is going to be executed first.
So free.
Multiply it by index and then the result of this operation is going to be added to this number.
Number five.
OK.
So because multiplication operator has higher precedence than the plus operator.
This piece of code is going to be executed first.
The result of this operation is going to be added to this number five value.
OK.
Here let me explain again.
Here I am actually referring to the name of this are a float numbers Ali.
And here I am actually putting the index.
OK.
So for example the first time that this loop is going to be executed the value of this index variable
is 0.
So here it is 0.
So and then it's actually assigned dissuade value to these are to the index zero of this Ari.
OK.
So first it's going to actually multiply number free by not by the value of this index.
So the value of this index is zero.
So free multiplied by zero is zero.
And five plus zero is five.
So the value of the index zero of this area is for example 5 and then it can actually increment the
value of this index variable Bhagavan.
So now the value of this index value bet is one and then it's going to actually check this condition.
So if one is less than the value of the length of this array.
OK.
So it can actually execute this line of code here again.
So now the value of this index what value of N is one.
And now we want to actually assign a value to the index.
One of these houri so free multiplied by 1 is free and five plus free is it.
So 8 is the value that is inside of the index.
One of these arii.
OK.
So hopefully that makes sense and let's actually create another for a loop here for an inside Apprentice's.
Let's actually create a variable.
OK.
After this for loop Let's actually create another for look here inside this uncreate method and after
these follow up here.
OK.
So typing here for an inside Apprentice's Let's actually create another variable in that index and assign
the value zero to this index valuable.
And here we need to actually create a condition here until index is less than float numbers are read
at length semi-colon.
And here I need to actually type in index plus plus.
So after each execution of this for loop it can actually add one value to the value of this index variable.
OK.
So first here I want to actually instantiate these two string objects that I actually created here.
OK.
So here I just need to refer to the name of these objects.
All it takes the index value assignment operator.
Now I want to actually get the value of this TDX the index takes you.
So I just need to type in here TXI index dot text dot to a string.
OK.
So because this object is actually strange we need to actually convert this value that we're actually
getting from this the index.
And it takes you to a string value so that we can actually assigned a value to this all the index value.
OK.
And let's actually instantiate our second object here all the value value assignment operator.
So I can't just dive in here anti-X the value that it dot to a string.
OK.
Now let's actually output some values to these text views.
So I can just type anti-X the index that said text.
And first of all I want to actually output the value of these to all you exceed the value.
First I want to actually output the value of this old TDX the index of value.
Ok so I just need you type here.
All Euxine the x value plus.
And now I can just type in here.
Index.
So first I refer to the name of this object all the x x value that has this value the value that that
is actually inside the T is the index takes text view.
I am actually putting a plus operator in order to concatenate these two values together.
And here I am actually referring to the name of the index variable.
As you can see here in order to output the value of this index to the screen.
OK.
So here again it's actually typing takes the value that said text.
And here I want to output the value of of these all the x the value value plus operator.
Now I want to actually output the value that is inside of the index of these Aure.
OK float numbers.
So here I just need to refer to the name of this array sub index.
OK array sub index.
And this means give me the value that is inside of that index.
OK.
So as you know after each execution of this loop the value of this index variable is going to be incremented.
So and that value is going to be in sight of these brackets.
And then this line of code is going to actually output the value that is actually specific to that index.
OK.
So hopefully that makes sense and let's actually run our project and see what happens.
So as you can see here now our application is actually running on this emulator here.
And as you can see here we messed up things a little and we need to actually fix some of the issues
that are actually related to the user interface.
So first let's actually go back and say this content underline mean that made that example and here
as you can see I need to click on this clear cache here and double click and this takes you and for
the text just typing here index and double click on the stakes for you and for the text just type in
here value and if you go back inside this main activity the java file here and here after this are index
as you can see puts a plus operator.
And here just put into double quotes and insert double quotes just putting a newline character OK.
Pipeful slash and again do the same thing here plus operator to double quotes back for a slash and a
shape.
So now let's get to that on our project again.
OK.
Now as you can see here now we can actually see these values here on this screen.
OK.
Index value.
So the value of this index 0 is 5.
The value of this index one is 8 and so on.
Here as you can see the value of this index 14 is 47.
So let me actually explain again here.
In the inside of this for loop.
First of all you're actually instantiating these two string objects.
And we're actually getting the value that is inside of this takes the index of a text.
OK.
And here again we are doing the same team.
And we are actually getting the value that is inside of the X the value takes.
OK.
And here in line 42 I am actually setting some text to this text the index takes you.
OK.
And I am.
First of all referring to the name of this all the x the index value plus index.
And here I want to actually output the value of this index as you can see the value of this index as
you can see here.
OK.
And here in line 43 I want to actually output the value that is inside of that specific index.
OK.
So for example the value that is inside of this index 0 is number five.
OK.
So let's actually delete these all the index value.
And let's see what happens.
So as you can see here now our application is actually running on the simulator and we cannot see the
indexes before this number 14.
OK.
So that's the purpose of actually creating all Tillich's the next value we want to get the values before
DS on index 14.
OK.
If you don't actually create this object you cannot see the values that were actually calculated before
these index 14.
OK.
So you need to actually put this object here.
In order to put out food the values before that of index 14 here as you can see now let's actually run
our project again.
And as you can see here again our application is running and we can see the index is a zero Freule number
14.
OK.
And the job of this new line character is to actually to create a newline character after each execution
of this line of code so that we can actually see the values here better.
OK.
But for example first of all it's going to actually execute this line of code and then it's going to
actually out with the index zero to the screen.
So after outputting this value here it's going to be putting a newline character here so that we can
see the next value the next index after these are below this number zero here.
OK.
Number 1 2 3 and rule number 14.
OK.
So as you can see here we've got floating point numbers here.
You can see that decimal points here and that the single digits.
And here you can see that these values are floating point numbers.
So I think that's enough for this utopia.
If you have any questions please post the discussion in the course and then I'll do my best to answer
your questions.
OK.
Thank you very much for watching and I'll see you in the next tutorial.