So as you can see here these are the lines of code that I pasted here.
So as you can see there at the Axis modifier of the Smurfette is actually private then the data type
actually the return value of this movie is going to be off type streamed and the name of this method
is get the exact animal name.
And this method accepts an argument of type string and the name of this argument is animal named.
So now let's actually go inside the curly braces of the Smurfette And let's see what's going on here.
So because this Smurfette needs to return a value of type streambed I just put the return key word here
and then I refer to the name of this argument name as you can see animal name that substring.
So it's going to give us a substring of a string value that you pass through the substring method so
that's substring.
And as you can see here if we put this piece of code here.
So now let me show you what is this animal name that index of.
And as you can see here inside the prentices and inside the coats we have dash.
So now let me show you the structure of the project because I want to show you our real important point
here.
So just click kind of view tool windows and then project and Dan are here as you can see inside this
assets folder and inside these tame animals there as he has here.
These are the odd animal names right.
But here let's look at this image here.
Tim underline any man's dash floppy underline bird.
So let me show you the quiz here.
As you can see so for example here as you can see for this button for this what it takes you can see
this flappy bird didn't actually change the font of our quiz for example to chant 5.
And now let me click on back.
So now let me change this question to another question so that we can see the flappy bird.
So as you can see here here we have the Spartan and it takes it.
Flappy bird is here.
So we get this text from our image names here inside our asset folder.
But as you can see here inside our tank on the line animals here you can see that we have a floppy underline
bird.
And how come we have this value here.
Floppy spaceport.
Where is that on the line here.
So that's because of this method that we actually created here.
We actually created an effort here in order to actually eliminate that underline here so that we can
actually show this flappy bird here so that the user can actually better see this value.
So as you can see animal name that substring.
And then I again refer to the name of this animal name that index of dash.
So indexed of dash means that it may actually show the destructive structure of the project indexed
ASH is the index that does exist.
As you can see here in this structure of the Project for example this flappy bird came under Line animals
tame underlain animals dash.
So this is that index plus 1 means the index after dash after that that means right.
So index of Dash is this one plus one means the index after this dash dot.
Or replace as you can see here that replace underline with are with actually an empty value as you can
see here with our space right.
Replace underlined with a space as you can see here.
So it's going to actually delete that underline.
And when you read it when I don't want to actually show this flappy bird here to the user as you can
see that underline does not exist.
And that's because of this a piece of code here that's because of this line of code here.
Anyone named that substrings.
So it's going to give us only a portion of this thing to do from the Smurfette that and that's the job
of the substring animal name that index of dash.
So the index of that is the index here plus one means the value after the stash.
OK Plus what if.
And then it going actually look at these characters and it's going to find these underline and it's
going to actually replace underline with our space here.
As you can see so hopefully that makes sense.
And that's the job of the Smurfette.
And if you actually scroll through the top here as you can see we used this Meffert here to get the
exact animal name here in line number one hundred than eleven in order to actually been able to for
example show the use of the correct answer then it's gone.
It's not going to actually use that underlying character is going to just put that animal in here at
the bottom.
So hopefully that makes sense.
And now you can understand the job of this method and why we actually created this method.
So not really to actually create other effects to for example as you can see we need to create these
Able quis spottiness in order to disable our craziest patterns so that that actually creates that method
here.
So after the end in Cur-Lee place of this get the exact animal name effort I'm going to pasting some
lines of code here and then I'm going to explain to you what's going on here.