Hire everyone in this theater we're going to go ahead and create another Android application.
So just click on this.
Start in your Android studio project and for the application name just type in your app 26 and then
click on next and here choose API 16 Android 4 point point 1 Jelly Bean for a minimum SDK and then click
on next here.
Choose blench activity next.
And then we can finish.
OK OK.
Now let's actually select this hello world takes you here.
And then press on delete key on your keyboard and then double click on this race for here.
Lay out activity underline that example and then here selectees floating action butter.
And then click on delete and then actually person delete key on your keyboard.
OK so now let's actually go back inside this content line made that example.
And here we are actually designed to use an interface of our application.
So now let's actually select these linearly out vertical here and put it at the center of this relatively
out here.
OK.
And then let's actually select this large takes of you here and put it at the center of this linearly
outwards call here.
Double click on it and for the text just type in here the initial capacity of aerialist is and then
put a colon OK at the end of your text and then press Enter key on your keyboard.
OK.
So now it's actually the rack and other large text view into this linearly and vertical here and double
click on it delete the text of this text view and for the ID just type in here takes the initial capacity
OK.
Initial capacity and then present Enter key on your keyboard.
So now it's actually actually a scroll.
You are a horizontal scroll you into this linearly alphabetical.
Just put it at the center of this linearly out vertical.
OK.
And then for the layout we just assign the value wrap content here.
And for the of height assign the value 50.
OK.
And then let's actually select this large takes view and put it inside this horizontal scroll view here
and then double click on it deletes the text of the stakes.
And for the ID just type in here takes the released values.
OK.
And then person enter here on your keyboard.
So now let's actually select another large text view here and put it inside this up linearly with vertical
A-J and double click on it.
And for the text just type in here the capacity of at least after adding values is and put a colon at
the end here.
Or keep the capacity of at least after adding values is colon.
And then press enter key on your keyboard.
So now let's actually select another large text view and put it up below this text view here.
And inside these are linearly out vertical at the center.
OK.
Double click on it deletes the text of this text view.
And then for the IDE it takes the at least capacity after adding values.
OK.
And then press Enter key on your keyboard.
OK so now let's actually go back inside this main activity that double file here and now let's actually
delete these lines of code that are related to the menu of options button here.
And then it is a block of code that is related to the floating action button.
And now we can actually put our own code here.
OK so now let's actually create some takes objects here.
So as you can see here these are the lines of code that actually pasted here and here as you can see
in line 19.
I created an object from this text view class called TXI the initial capacity.
And here I referred to this identity X the initial capacity and here as you can CTX the A-list values
are that are the list values anti-X the array list capacity after adding values TXI the Arab List capacity
after adding values here.
OK so now let's actually add somewhat some lines of code here.
OK OK.
Now we want to actually create an array of string values.
OK.
So here as you can see in line 26 I created an array of string values called animals.
But this time I actually created an array list.
OK.
So here I can actually tell you that this type of array is proficient.
For the users for the programmers who actually don't know the length of their alley.
OK.
So here as you can see we have our A-list here and inside of these attacks I actually specified the
type of my Arey Stream.
And then the name of my Auret is animals.
And then I actually instantiated this Ari while using this new keyboard Aurelia's strange Prentice's
semi-close.
OK this is how you create and actually really object.
Now I'm going to actually add some values to this.
OK.
So first of all let me actually tell you what would be the size of this at least here.
So now I'm going to actually output the size of this at least to the screen.
So here I just referred to the name of this object TXI the initial capacity that said text anemones.
So now I referred to the name of this Aurelia's object here.
Animals that size.
So the Smurfette this size actually turns up the size of these are here to me.
So here I actually converted this value to a string value so that we can see this rally on the screen.
OK.
So let's actually on our project and see what happens.
So here as you can see our application is running on this emulator and the initial capacity of at least
is zero.
OK.
So let's go back and say this main activity the java file here and now let's actually add some values
to these animals.
OK.
So here as you can see I actually added some values to these animals Auret animals that live in animals
that had Tiger animals and chat animals that punter animals that bear animals that bird animals at FOX.
OK.
And this feature is adding feature is not actually available for a normal race.
OK.
So if you do know what would be the length of your of a.
Use the normal rate that they actually touch you in the previous tutorials.
But if you do not know what would be the length of your array are used this kind of art at least here.
OK.
And now let me actually output these values to the screen by using a for loop here.
So now I'm going actually paste in some lines of code here and then I'll explain to you what's going
on here.
OK.
So here as you can see these are the lines of code that they actually pasted here and in line first
is forty eight.
As you can see I actually declare a string variable here.
And as you can see I didn't instantiate this variable yet.
OK.
And here I created a for loop.
OK.
And inside the apprentice's of this for a loop as you can see I created of our table of type integer
index and then I assign the value 0 to this variable.
And then here I specify the 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 size of these animals array
as you can see this loop is going to be executed.
And here I specify that after each execution of this for loop the value of this index value bet is going
to be incremented by 1.
OK.
And here inside the curly braces of this for loop as you can see these lines of code here are in line
40 Vonte actually instantiated.
This all takes the at least values here and here I refer it to the name of this object to 60 at least
values that get takes that was three.
OK.
And then I assign this value to this variable here.
OK.
And then in line of 42 as you can see I referred to the name of this object t x the at least values
that said text all TXI the list values plus animals that get here as you can see.
You want to actually get the value that is inside that specific index of this.
OK.
So for example for the first time that this loop is going to be executed the value of this index variable
is zero.
OK.
So here now we have animals that get index.
OK so now it's going actually to go inside of these animals already.
And as you can see here this lion value here is actually at the index 0 of this tree.
OK.
So it's going to return this value to me.
Animals that get our index is going to give me this value to me.
OK.
And here I actually putting a space here and now let's actually run our project and see what happens.
OK.
So here as you can see our application is running on this emulator here.
And here we can actually see these values.
And if they actually scroll to the left.
So here scroll to the left as you can see we can see the other values.
OK.
The other values that are actually inside of these animals a ok.