I want to actually arrange the values that are inside of this tree in an ascending order.
OK.
So in order to do that I'm going to actually putting some lines of code here and then I explain to you
what's going on here.
OK.
So as you can see here these are the lines of code that are actually posted here that are actually pasted
here as you can see and in line 51 as you can see.
You referred to the name of this artist class.
OK.
We have a predefined class in Java arrays dot sort.
So as you can see here this is actually a class of Meffert.
OK we call this method and these are base class arrays that sort of double values Ali.
So this is going to actually arrange the values that are inside of these double values array in an ascending
order.
OK.
And in line 42 I created an object from this string class as you can see I only declare this object
here.
OK this variable.
And then I created a full loop here.
So inside Apprentice's of this foldback you can see first of all I created a variable of type integer
index and then I assign the value 0 to this variable.
And then he had actually created a condition which determines how many times this group is going to
be executed.
So until the value of this index variable is less than the value of the length of these double values
array.
This loop is going to be executed.
OK.
And here I specified that after each execution of this for a loop increment the value of these are inexplicable
by 1.
OK.
So here as you can see inside of this for loop I actually instantiated this variable all the x the R.W.
values assignment operator.
And here I actually referred to the name of this takes you here.
This object takes the arrow double right to use dot gettext and getting the takes of these takes few
thought was strange.
And here I am converting that text to actually a string value.
OK.
And then here I actually assign that my data is all the x the R.W. values and then in line our first
T5 again I actually referred to the name of this XTi a values that said text.
I actually want to set some text to this text view all the tradable values here.
I referred to the name of this variable so that the user can see the previous values.
OK.
Plus here I want to concatenate the value of this value here double values agree here.
I referred to the name of this are a sub index.
OK.
So for example for the first time that this loop is going to be executed executed are the value of this
index variable is 0.
OK.
So double values or index.
Is this value OK.
We're going to give me this 6.3 here to me.
OK.
And here again I actually put it I actually put up plus operator here and here I actually put a space
here OK between the values.
So now let's actually run our project and to see what happens.
OK.
Now as you can see our application is running on this emulator here and here and as you can see the
values that are inside of these double values a here are now actually arranged in an ascending order.
OK.
So you can see these values in some of these scroll you hear if they actually scroll to the left here
I can see the other values.
OK.
So hopefully that makes sense.
Let's actually go back inside this main activity that job off fight here again and after this for loop
here after the ending curly brace of this for loop that's actually putting some lines of code here.
So now I want to actually 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 the two lines of code here that they actually paste that here.
First of all in line 49 I actually created an average of integer numbers here as against.
And the name of my great ease and numbers a.
And then here I instantiated this at a by using this new keyboard.
And here you specify the size of my area or the length of my addy.
And then in line 40 I actually again referred to the name of this race class dads feel here.
I want to actually assign some values to my arii.
OK.
I raise that field.
First of all I referred to the name of this R.A. here into numbers are a comma.
And here I specified the value that way that I want to actually assign to this Adoree.
OK so now let's actually create Smurfette OK.
Inside of this main activity class.
Ok so after the ending curly brace of these uncreate Meffert as you can see it let's actually create
another method here.
OK.
As you can see this is my effort here.
And then the access modifier of mame if it is public the return type of this Meffert is void.
So this is going to actually return nothing.
OK the name of this method is output the arrow to the screen and this buffer is going to actually accept
two arguments.
OK so the first argument is actually of type integer array.
As you can see here and the name of this argument is Aure and the second argument is actually of type
text view.
And the name of this argument is takes three.
OK.
So inside of this Meffert as you can see here in line 14:9 I actually created a string variable.
I declared this string variable in line with the here and then I didn't instantiate this variable here.
And here I created.
Oh and enhanced for loop.
OK.
So I want to actually either rate over the values that are inside this array here inside of this integer
array.
OK so I created an integer of argument here number and it's going to iterate over the values that are
inside of these aurea.
Here we're going to actually do something with that valuable with that specific variable.
So here I specified that I actually referred to the name of this string variable here.
So here I actually first through the name of this text view your argument that get takes that was three.
So here I am getting the text of this text.
And I am converting that value to a string value and I assign that value to this.
All it takes.
View of value here.
OK.
And then in line 54 are you referring to the name of this argument takes view that set text.
And then I actually refer to the name of this variable or it takes a value plus number.
OK this is the number.
This is the value that is actually inside of this Arai.
OK.
Plus a space here.
OK.
And now let's actually call this method here.
Inside of this uncreate Meffert out foods the tray to the screen.
OK.
So as you can see if it actually accepts two arguments.
So the first argument is actually of type integer array.
So if you have an integer are a here int numbers every comma.
And the second argument is after it takes you.
So again just typing Tia XTi.
And here I can just refer to the name of this object.
The end numbers are a.
And now let's actually run our project and see what happens.
OK OK.
Now as you can see our application is running on this emulator and here as you can see it says this
is an array of integer numbers and we can see these values here.
OK this number wants here.
OK.
So here we specified that we want to actually these are a this and its numbers are a bit number one
here.
OK.
So as you can see this Aure actually accepts to any integer numbers of k the size of this area is 20.
And here as you can see we can see these number ones here.
OK.
Inside of this arii.
OK.
So hopefully that makes sense.
And let's actually go back and say this main activity that double fight here and now it's actually at
some other courts here.
OK inside these uncreate Smurfette.
So now I'm going to actually pasting 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 the lines of code that are actually pasted here.
OK.
So first of all in line 45 I created an integer array called integer a 1.
OK.
And here as you can see I insensate it this way by assigning these values as you can see inside of these
curly braces these values to this integer add a 1 here.
OK.
And here in line 46 I actually created another array here called integer.
Ali 1 copy.
OK.
And then I actually instantiated dicere by using this new keyboard here and here as you can see inside
of the brackets here are actually specified the length of these integers are a copy here.
So the length of these integers are a copy here is the length of this integer at a 1 here.
OK the size of this integer at a point here.
OK.
And then in line 48 I actually created another line of code here.