As you can see here we have actually a variable of type screen and the name of our variable is animal
image name.
And then I put an assignment operator here and then I referred to this list here to this list that we
actually created inside this class.
All animals names the list.
Right.
So this list is going to actually hold the animal images the actually the names of the animals that
we specify.
We want to have inside of our quiz for example.
We specify that we want to have actually the tame animals or the actually the wild animals inside Ahlquist
in that case it can actually hold this.
This is going to hold the animals of each type that we specify We want to have inside our quits and
that's this list here.
These all animals names list is going actually hold the images the names of those images that we want
to have in say the quiz.
Right.
For example we got to have tame animals or we want to have wild animals or we may be moving and should
we want to have tame and wild animals inside our.
And in that case is this list here is going to hold those images those image names.
So now let's actually go back inside our studio here.
It's actually publicly turn this tape here in order to make his area wider.
So all animals names least that get.
So because this is actually the list in order to get the value of this specific index that we have inside
this list we need to use the get method.
So now I want to actually get of value that of it of a specific index that we have inside this list.
So now you may ask that what is going to be that index.
So this operation here as you can see is going to specify that index.
Right.
So for the first time that this is going to be executed as you can see the value of the role variable
is zero.
Right.
And also as you can see the value of this column about Ebell is zero.
So now zero.
Multiply it by two is zero right ZERO multiplied by two results in the value zero plus and Cullom is
also zero.
Right.
So zero plus zero results in the values zero.
And now it's going to actually get the value that we have inside the index zero of these all animals
names list and then is going to actually assign that value to this animal.
Image Name.
And then here as you can see in line number three hundred sixty eight is going to actually execute this
line of code here PTEN guessed that set text get the exact animal name.
So we use this method to actually get the right animal name without the parts that we don't want to
have.
So get the exact animal name animal image name.
So let me actually show you the emulator and then it will make sense.
So as you can see here our application is running on this emulator and here as you can see for the first
button as you can see we have the value on it.
And for the second button as you can see we have the value.
So now as you can see first we can actually look at the row.
So now we are actually inside the row 0 right for the first time that is for up here is going to be
executed.
We're inside the row 0.
So now as you can see if I show you the emulator as you can see this is the first row right.
And now as you can see we have another for loop here inside this for a loop.
And here we are actually specifying the Cullom.
So the column is going to be the pattern inside this row.
So now we are inside the row 0 and column 0.
So this means that you're going to actually work on this button.
And now as you can see the I try to create a button.
So it's going to create a button for us.
And then as you can see those of buttons in animal animalcules in row 0 that at get child at column
0.
So this is the first button and then it's going to enable this button here as you can see.
And then as you can see we are specifying the name actually the name of the spot in strange animal image
name.
So assignment operator all animals names list.
So this list here is going to actually hold the the names of the animals that we can have inside the
Queen's dot net.
So here I want to actually get the value that is inside of this specific index of this animal.
All animals names list.
So now you may ask that what is going to be that index the index.
Is this operation here.
First it's going to multiply the value of this low by 2.
So 0 multiplied by two is zero.
And as you can see here the column is also zero right.
So zero plus zero is zero.
So it's going to actually give us the value that is inside of the index zero of this Namath's names
list and then we can actually assign that value to the animal emergency.
So now this animal image name here in this case holds the value aren't right and that here PTEN guess
that said text get the exact animal name if you are using a Windows machine or just hold the control
key on your keyboard.
And if you are using a Mac just use the comment here on your keyboard and then click on display of it
here.
As you can see now this is the method.
So a private stream get the exact animal name and this if it accepts a value of type string.
And it's going to show the return value of the upstream.
So animal named that substring.
So this argument here as you can see that substrate.
So this subsetting IF it is going I should give us a substring of this value that we has through the
Smurfette animal that index of Dasch plus one so it's going to look at the index of this dash of this
animal name plus one so it can actually go one index.
Actually one in forward.
So now let me show you the structure of the project as you can see for example inside this tape handling
animals we have this.
And here right.
So tame Underland and mustache.
So the stuff here is it's going can actually look at the index of the stash here and then it's going
actually.
Plus one is going to actually increment this in the ex-spy van so he's going to look at the age here
after this dash that replace.
So he's going to actually replace the entire name as you can see so it's going to look at the entire
named after this dash as you can see here.
So the entire name is and that Pinti right.
So if there is actually are and underline here it going to actually replace it with or without actually
the space character.
Right.
So we don't have an underlined when we call this method here.
So let's go back to our Mefford here.
Next animal.
Let's scroll down here as he has it this is our for loop here.
Right.
So you get the exact animal animal imagining.
Right.
So pretty and guess that it takes to get the exact animal animal image name and it can actually set
that value here and aunt as you can see here.
Right.
So now for the second time that this follow up it's going to be executed.
Now as you can see first is going to actually look at this for a loop here.
So it's going to increment the value of this column by one.
Right.
And now the value of this color is one.
Right.
So now it's going to actually look at this condition here again.
So number one is actually less than the value of this get child count of the rules of course.
And in animalcules role.
Because each role has two buttons right.
So as you can see with the Get child count it here is going to return the value to here.
Right.
So number one is less than two so can actually execute this follow.
Here again here.
So again it's going to create another button so it's going to create this button here horse is going
to actually enable this button and then it's going to actually get the name.
So for example here in this case as you can see all animals names these that get.
So now the value of this rule is zero right.
So here we still we are actually inside the 0 0 0 0.
Multiplied by two is zero plus.
And now the value of this column is 1 so 0 plus 1 is 1.
So it's going actually specify this column here and now as you can see the 0 plus 1 is 1 and it's going
actually get the de-value that is inside of the index number one of these all animals names list.
And it's going to assign that value to these animal image names.
And now as you can see in this case this is horse.
So between guess that text get the exact animal name animal image name.
So this is horse.
So hopefully that makes sense.
And then it's going to to again add one value to the value of this column.
So now the value of this column is too.
And again it's going to actually look at this condition here.
So number two is actually is not less than the value of this get child count because each load has two
columns.
So two is not less than two.
So it is a splash here as you can see it's going to evaluate to false and then it's not going to execute
this follow it any more.
And now it can actually look at this for a loop here.
So now are the is going to actually increment the value of this roll by one.
So now the value of this ROE is 1.
So as you can see here so low is less than the number of animals as Rose as you can see here here we
actually specified that we want to have two laws or we want to have actually as you can see here we're
going to have four guest options and this means that we have.
We want to have two close.
So now it's going to actually look at this ROE here which is inside the index number one of these he
had loads of spottiness in animal cuius So Roe as you can see here is now one.
So one is less than the number of animals going through because we have to lose.
So number one is less than these I guess throws here as you can see.
So it's going to execute this fall here.
And then again it's going to go inside this fall and I say this for loop.
And then it's going to actually specify these values here.
So hopefully that makes sense.