So as you can see here these are the lines of code that they actually pasted here.
So first of all in line 60 the I created a variable of type integer called Aure element.
OK.
And here I actually put in an assignment operator here.
And then I referred to the name of this class.
And here I called this method to this class had on this race class here.
OK.
So ARA is that binary search.
So this river is going to actually return.
OK.
Are specific actually element for that value that we actually specify for this method.
OK.
So this it is going to return a specific element inside of the array that we specify for this method.
So here we refers to the name of these double values array.
OK.
And we want this specific element that actually this value refers to.
OK.
So for example we have and we have these global values right here as you can see.
And this number two point seven as you can see is here.
OK.
We want the specific element the specific index that this value actually first.
OK so now let's actually as you can see here is in line 61.
I actually created an if statement here.
OK.
If the value of this every element is equal is actually greater than or equal to number 0 then the location
of every element that set text and here actually referred to the name of this string class data format.
OK string data formats we've found 2.7 at element.
OK.
Or add index percent.
So this token actually refers to this argument as you can see here.
And this token is actually related to this argument and here as you can see I put a plus operator here
in order to concatenate this value with this value in double values array.
And here I put in a comma here and here.
As you can see I actually put in an argument of type integer OK.
So this token is actually related to this element argument here.
OK.
And then I put in an else statement here else.
So this means if the value of this element is actually less than the value of this zero here else takes
the location of the element that text that said text couldn't find the value in that element.
I think this is Runk couldn't find the value in that houri.
OK so now let's actually run our project and see what happens.
So now as you can see our application is running on this emulator here.
And it says the location of our every element here.
We found a number 2.7 at 12:49 one cannot see the other values here.
We can see these are in double values.
So here let's actually go back inside these content underline minute example.
So now here inside of this content underline mean exam and let's actually select our vertical scroll
view here as you can see inside of these containers folder we have a vertical scroll view here.
OK just select this and put it inside this linearly as vertical here.
OK.
And let's actually just select the location element takes view as you can see here and put it's OK to
select it and put it inside this scroll view here.
OK.
Well actually this is a vertical scroll view.
OK so now let's actually run our project and see what happens.
So as you can see our application is running on this emulator here and here as you can see it says we
found the number two point seven element 1 in.
So let's actually scroll down here scroll down to scroll view here as you can see I can scroll Now scroll
here.
Now we can see the other values.
OK.
So we found number 2.7 at element 1 in double values.
Ari OK.
So now you may wonder why this value is actually an index.
One of these r.e.
OK.
So as you can see here let's actually go back inside these main activity the Ajo of phi here.
As you can see this number is actually an index.
This is index 0 index one index to inexpertly.
OK so this value is actually an index free.
OK why.
Here it says we found our number 2.7 at element 1.
OK.
Why why this happened.
Because here as you can see in line in line 41 we actually arranged our double values in an ascending
order.
OK.
So here if we actually show you that this is an array of double values here you can see that these values
are arranged in an actually ascending order.
OK.
So here you can see this while you are these numbers 2.7 is actually at index one of these at.
So here as you can see that's why it actually says we found number 2.7 at element 1 in double values
at a.
Ok this is index one.
So hopefully that makes sense.
And I think that's enough for this tutorial.
And if you have any questions please post the discussion in the course and then I'll do my best to answer
all of your questions.
And thank you very much for watching and I'll see you in the next tutorial.