And now let's actually go ahead and add some lines of code here.
So now I even tried to the output the size of these are Auret to the screen after actually after adding
values to these.
OK so here first of all I refer to the name of this text you object to the aerialist capacity after
adding values that said text anemones that size plus two double quotes so that this value is actually
converted to a string value and then we can actually see that value on the screen.
So now let's actually run our project and see what happens.
OK.
Now as you can see our application is running on this emulator.
And as you can see it's the capacity of our aerialist after adding values is number 7.
OK.
So we have seven values inside of these animals right now.
OK.
So here let's actually create a method inside of this main activity class.
So after the end in Curlylocks of this uncreate method let's actually create another method here.
OK.
Now I'm going to actually paste this method here and then I'll explain to you what's going on here.
OK.
So as you can see here this is my method that they actually pasted here inside of this main activity
class.
So the access modifier of this if it is public the return type of this method is Voyt and the name of
this method is output the aerialist values to the screen by using enhanced for loop.
OK.
And this method actually accepts two arguments and the first argument is actually after Aurelia's strange
the name of this argument is values.
And then the second argument is actually of type takes few and the name of this argument is takes you
here.
OK.
And inside of the Smurfit as you can see first of all in 1960 I created the string variable.
I declare this variable here.
And then I'd actually I didn't instantiate this variable here.
OK.
And I created a for loop.
OK.
And enhanced for loop.
I created actually a string variable called the value.
And now you want to either rate over the values that are actually inside of this add a list.
Here are key values.
And now inside of this a for loop here as you can see I instantiated this all takes you a value and
actually refers to the name of this takes you here that gettext that was.
And then I assign this value to this old text view value and an inline 64.
Are you referred to the name of this text you object that set text.
All it takes you value plus value plus a space here.
OK so now let's try to go back inside this uncreate method.
Now let's actually add another value to these animals.
OK.
So animals darts at and inside of double quotes Let's actually type duck.
OK.
And now it's actually referred to the name of the Smurfette here on which foods are the frailest values
to the screen.
By using an enhanced for loop and this method actually accepts two arguments as you can see.
So the first argument is actually of type and it really is strange.
So now we have a list here as you can see animals.
OK come on.
And the second argument is actually offtake takes view.
So I can just type anti-X the least values.
Ok so now let's actually run our project and see what happens.
OK.
As you can see here now our application is running on this emulator.
And here if we actually scroll to the left and here as you can see we can see this dog value here.
OK.
But here as you can see the capacity of Aurelia's after adding values is 7.
OK.
So here in line 49 I added another value to these animals at 8.
So here I could actually just type in the Aurelia's capacity after adding values that said text animals
are dot size plus two double quotes.
That's actually run our project again and here as you can see our application is running on the simulator
and here it says the capacity of analyst after adding values is 8.
OK because we added these value this thug value to these are a hit as you can see here.
OK.
So hopefully this makes sense let's actually go back and say this our main activity that a fight here.
But before that before adding any other lines of code here as you can see I created a for loop here.
OK.
And then I actually tried to output the values that are actually inside of this Aure to the screen.
OK.
And then I created this Smurfette here as you can see inside of this glass output the A list values
to the screen by using enhanced for loop.
And here I actually again called this method here kid in line 51.
Here you want to out with the values of these animals.
Ari to the screen and as you can see here I want to put those values to these text the at least values
object.
So here as you can see we've got our.
As you can see this does actually go inside here as you can see lion tiger cat punter bear bear Fox
lion again as you can see we can see those values are here.
Lion Tiger-Cats and that's because we actually created this for live here and it was called the Smurfette
here.
OK.
And it's going to actually put those values beside each other and here as you can see the flow of the
program is going to try to execute this for a loop.
And then here and then here here and here.
OK.
And we have to actually prevent these errors mistakes in our codes.
So here we could actually comment out this line of code here.
And if I actually did on my project again let's see what happens.
And here as you can see we can see these values here only once.
OK.
Hopefully that makes sense.
And as you can see here we can we can't see the tag value here because in this way the flow of the program
only executes this for loop here and then it's going to execute this line of code and then it's going
to actually execute this line of code here.
OK.
But as you can see the capacity of aerialist after adding values is 8.
OK but we didn't actually tried to output this value to this screen yet.
OK.
Because we added this line of code after this for loop here.
OK.
So hopefully that makes sense and if we actually want to comment out this line of code here now I can
actually uncomment this line of code here.
And if I run on my project again let's see what happens.
So now we can see our application is running on the simulator.
And if you scroll to the left to the left as you can see we can see the stock value here and the capacity
of Aurelia's after adding values is 8.
OK so now let's actually add some lines of code here.
So here I want to actually paste another line of code here.
So as you can see here I want to actually add this value at index 0 of these animals Ali.
OK.
So here I just referred to the name of this Aure animals that I had.
OK.
And inside the apprentice's of this Meffert and I actually put the number zero.
Here come the vault.
So here I'm going to actually put this Avali evolve at index 0 of these arey.
OK.
So let's actually call the Smurfette here out foods the aerialist values to the screen.
So here I just need to refer to the name of this at least here.
Animals come on and are the list of ideas.
OK.
So here we need to comment out this line of code here because we don't want to actually execute these
lines of code twice.
OK.
And in that way if you actually execute this line this line of code here and then execute this line
of code here it's going to actually output those values those of animals names are to screen twice.
So now let's actually run our project and see what happens.
So here as you can see and here we can see that these values are outputted through the screen twice.
OK.
Here you can see these values twice here and now.
Let's actually comment out of this line of code here and now it's actually not a project.
Again let's see what happens.
And here as you can see we can see these values here and now we can see this of Woelfel value is at
index zero all of these are the OK of these animals.
OK.
So hopefully that makes sense.
And now there's actually some more lines of code here.
So now I want to actually remove the value that is inside of the index number.
Two of these Adye.
OK.
So as you can see here this is not index number zero index number one.
And it is index number two tiger.
OK.
So here I could just typing animal start.
Remove index number two.
OK.
The value that is inside of the index number two.
So here I could just take out foods.
He out with the at least values to these to the screen by using enhanced for loop.
And here I need to comment out this line of code here and here inside of the prentices I just need to
refer to the name of this are the animals come on 60 at least values.
Ok so now let's actually on our project and see what happens.
So now as you can see the value that is inside of the index number two of this Arey is now removed.
OK Wolf lion Chad punter.
And we can see that value here.
OK.
So hopefully that makes sense.
And now it's actually to go back inside these main activity that of a fight here.