OK everyone.
Now we want to actually create some text you objects.
OK.
So I'll just paste in some lines of code here and then I'll explain to you what's going on here.
OK.
So as you can see here these are actually the lines of code that actually are pasted here.
And as you can see here first of all we created a text object OK and that and the name of this text
object is to the original values of arii.
And here we are referring to this ID.
OK ATX the original values of.
Again we created another text view object to the values of modified at a.
And here you are referring to the ID TXI the values of modified at a.
And here again we created another takes object takes the modified element and here he referred to this
to this ID TXI the modified element.
OK.
And again we created another takes you object to the original Irais element.
And here we refer to this dx the origin an added element and again we created.
And that takes object to the array element value after Amadi modification.
And here we referred to this ID takes the element value after the modification.
OK.
Now I even try to recreate an array of string values.
Ok so I'm just pasting this at a here.
So as you can see here first of all I specified the data type of my array and then I specify that I
want to actually creating an array by actually putting these brackets here and then I actually gave
a name to my add a string array.
And as you can see here these are the values of my Aure here.
OK.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z.
OK.
And then I notice that they actually put in a new line character after each value as you can see instead
of double quotes here so that the user can see the values better.
OK.
So now I want to actually create a string object.
OK.
So here as you can see this is my string object and the data type of My object is of type string as
you can see here.
And the name of my object is total original values.
Ok here I actually assigned an empty value to this object here.
Ok to this variable.
And now I want to actually create an enhanced for loop in order to either get over it.
These are values that are actually inside this string array.
Here as you can see.
So here I just pasting these enhanced for loop here and here first about inside the Prentice's of this
enhanced for loop.
I created a string valuable as you can see the type of my value.
But is strange and the name of my variable is value.
OK.
And here I want to actually iterate over the values that are actually inside of this three and three
here as you can see.
And then and then I want to actually do something with those values.
So as you can see here I am I to either iterating over the values that are actually inside of this string
array.
And then here is going to actually assign every one of each values.
For example does the value that is inside of this index 0 of this agree to this value valuable here
to this object the value.
And then here inside of this full loop here if you want to actually first of all we referred to this
total region values.
Object to this really valuable.
OK.
Plus equal.
This line of code is actually the same as this line of code that I am about to write.
OK.
Total all original values OK.
Assignment operator.
Total original values plus value.
OK.
And here in this way as you can see it's going to actually assign the value as you can see for example
at this value that is actually inside of these double quotes and then assign that value to this total
original values variable here that we actually created in line 29.
So after each execution of this for loop after each execution of this enhanced for loop.
OK.
It's going actually to assign the value that is for this specific index of this Aure to this total original
values object that we actually created in line 29.
OK so now we can actually output the value of this total origin and values to the screen.
So I can't just type in the X the original values of a dot set text total original values.
So now let's actually run our project and see what happens.
So as you can see here now we can see these values on this screen here.
OK.
A B C D through that.
OK.
And as you can see here these are the original values of the array.
OK so now let's actually to go back and say this main activity that a file here and after this line
of code here.
Now let's actually add some more lines of code here.
So here I want to actually modify the break.
OK.
You want to modify the values that are actually inside of this houri.
So first of all this actually create a method.
OK.
So just type in here public as you can see here the access modifier of our method is public.
Voyt And again as you can see the return type of Our method is void.
So this method is going to return nothing.
And the name of our method is let's modify the array.
OK.
So here I want to actually specify that this Meffert is going to accept an argument.
OK this is going to accept an argument of type.
Strange.
Actually it is actually an array.
OK an array of string values and the name of this array is for example arey.
OK.
And then we can actually open and close this fit by using these curly braces and inside of the Smurfette
we can actually put our own implementations.
So as you can see here now inside of this Nefert I want to actually put a for loop.
OK.
So this is my full loop here and here as you can see inside of the practices of this for loop.
First of all I created a variable of type integer and the name of this variable is index.
And then I actually assign the values zero to this value.
And here I actually specify the condition OK which determines how many times this group is going to
be executed.
First of all we referred to the name of this variable index.
OK less than Redland.
So this loop is going to be executed until the value of this index variable is less than the value of
the length of this.
OK.
And here as you can see we specified that after each execution of this for a loop the value of this
index variable is going to be incremented by 1.
OK.
So here as you can see inside of these for loop in line 53.
So first of all I referred to the name of this argument array.
OK.
Sup index.
So inside the brackets I referred to the name of this index.
Sorry about that.
As you can see here.
Assignment operator and inside it up quotes.
I just putting a dollar sign.
OK.
Plus So here I want to concatenate disvalue this string value up with another value OK.
Plus Arey sub index.
OK.
So it's going to concatenate this value that is inside of this double quotes with another value that
would be in sight of the specific index of this Aure.
OK so now here let's actually refer to the name of this method here.
Let's modify the Arey So as you know this method is going to actually accept one argument of type String
Theory.
So when you actually give an array of type string to this method.
OK.
So here we have an array of type string called string theory.
So if you can just put it here Strange R.A..
And now let's actually create a string variable.
Ok a string object.
So I just need to put it here.
So as you can see here the Data Type of my variable is strange the name of my variable is total modified
values.
Assignment operator and then I assigned an empty value to this variable OK.
In order to just instantiate this object.
OK.
So now let's actually create an enhanced for loop here.
OK.
And again I can just create a string variable and the name of this value it is value.
OK.
Colon.
And here I can actually iterate over the values that are that are actually inside of these three Aure
here.
OK.
And then I can actually open and close this for a loop by using these curly braces.
So inside of this for loop I can just refer to the name of this valuable total modified values.
OK.
Plus equal value.
OK.
So this line of quote is the same as this line of code that I had to actually write here.
Total multifaith values assignment operator total modified values plus value.
OK.
And then I need to put in a semicolon at the end of my statement.
And now I want to output the value that is inside of this total my default values to the screen.
OK so I can't just take 20 x the values of modified Aure that set text and then I need to refer to the
name of this object total modified values.
And now 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 and these are the original
values of the array.
OK.
As you can see here.
So now I can actually scroll down here and here we can see the values of the array after modification.
So here we can see the dollar sign before the values here.
OK.
So hopefully that makes sense and I think that's enough for this tutorial and we're going to actually
continue building this application in the next tutorial.
Thank you very much for watching and I'll see you in the next tutorial.