So let's actually output this value to the like.
So here I can just type in luck that are.
And here I need to actually put into double quotes l o g v the capital letters comma integer numbers
index zero plus two double quotes in order to actually convert this value to our strong values as you
can see here this value here integer numbers index 0 is going to give me of an integer number.
OK so I need to convert that value to a string value.
And here we are saying that give me the value that is inside of the index 0.
So let's actually do our project and see what happens.
So as you can see here now our application is actually running.
And here inside is our luck level section choose info and inside of the search bar just type in here
L O G capital letters.
OK.
So as you can see here we have this number 24 here.
So let me actually make this like area wider as you can see this is our number 24.
OK.
So this is the value that is inside of the index zero of these Arey of these integer numbers.
So let me actually.
So then you actually out with the value that is inside of the index one.
OK.
So I just need to type in here like that.
And then to double quotes at O.G. comma integer numbers index for example 1.
Let's let's actually run our project again and here instead of this lark we can't see the values.
So as you can see here it outputted number 0 to the log.
OK.
So now we can understand that the indexes of array by default has half the value zero within them.
OK because we didn't assign any value to the index number of one of these integer numbers it is your
numbers are a.
This index has actually of default value which is zero here.
As you can see here.
OK.
Here let's actually assign a number of value to the index number of one of these are the integer numbers.
Number one assignment operator and here I can actually assign For example number 50.
OK.
And let's actually output this value to the lock lock that i l o g.
Come on.
And it's actually 14 a string value.
This is the value that is inside of the index one of integer numbers.
OK.
So let's actually put a plus operator here and then it's actually fair to the name of this array index
number 1.
So let's actually do it on our project again and see what happens.
So as you can see here in the luck it says this is the value that is inside of the index zero of integer
numbers at a 50.
OK.
So here in line twenty six we assign the number 50 to the index.
One of these aere here of these integer numbers Airey and in line 28 we decided to output that value
to the log.
But in line twenty four when we actually decided to output the value of the index zero of these integer
numbers array here because we didn't actually assign any value to the index of one of these integer
numbers array the default value was 0 0.
OK.
But in 9:26 We assigned to number 52 the index one of these initial numbers array and in line 28 we
can see that by the number 50.
OK.
So hopefully that makes sense.
Let me actually comment out these lines of code here because I want to show you another way of actually
creating arrays in Java at this time it's actually creates an array of strange values.
So first I need to actually refer to the name of this string class.
OK.
First we need to specify the type of R R.
OK.
So we're going to actually have an array of type string.
And then we need to actually flatten a pair of brackets.
OK.
And here we need to actually specify a name for our array.
So for example strange values.
OK.
And here let me actually point out you can actually put these brackets here after this array name.
OK.
It doesn't make any difference if you want to create arrays.
It depends on you if you want to put their brackets after the array name or after.
I personally prefer to put the brackets after the after the type.
OK.
And this is also a preferred way to actually create an array.
OK.
And then it's actually putting an assignment operator after our array name and here instead of just
typing in new strange brackets.
And here we can actually specify the size of what are they for example 20.
OK we can actually write this array we can actually create this array in another way we can put up an
opening brace followed by a closing curly brace and we can hear specific the values of our alley.
Ok for example the value that is inside of the index 0 of this Arev would be for example animal and
the value that is instead of the index of one of this at a would be for example home the value that
is inside of the index number two of these Arev would be for example table.
OK.
And so on and we can actually assign unlimited values to this array.
OK.
In this way you you're actually specifying the values of this array.
You can actually create your array in this way or you can actually create your arrays by using the new
operator and then specify the size of your array and later you can actually assign values to your area.
OK.
As I actually demonstrated that here.
OK here we actually created an array of integer numbers.
And here we are specified the size r r a.
And here we could actually assign some values to the indexes of that Ari.
OK.
But here we are saying that in index 0 puts the value and amount index number of one puts the value
home and in the index number to put a value table.
OK.
And we could actually iterate over the values of this array by just creating a for loop for int.
OK.
Index assignment operator 0.
So I actually created an integer number here an integer value here and I assigned the value 0 to this
variable.
OK.
Index on here.
I need to actually specify a condition until index is less than the values that are inside of this area.
So remember every array in Java knows it's Len.
OK.
So this area as you can see here knows how many values are inside of this array.
OK.
So when you create an array in Java you are actually fairly in place in memory of which that array is
stored.
OK.
So here these are string values.
It is actually referring to a place in memory which these values are actually stored.
So here I can actually refer to the name of this racing values that Len.
So in this way you are actually getting the number of values that are inside of these array.
OK.
And here we can actually take an index plus plus OK and then they can ask you to open and close this
for loop by using these curly braces and inside of this for loop.
We can just type in log dots.
Oh gee come on.
And here first of all we can actually specify the index overlay.
So index number Poulan plus index OK plus and now we can actually specify a value that is inside of
that index.
OK.
So here we can actually typing to double quotes the value that is inside of colon that index colon plus
index plus is plus.
And here let's actually create an line so that you can actually see what's going on here.
String values and it's actually putting a pair of brackets and inside the brackets.
I can actually put it in the index here so I can actually get the value that is inside of that specific
index.
Let's actually run our project and see what happens.
OK everyone as you can see here in the log.
It says index number 0.
Ok ok.
The value that is inside of that index 0 is an amount.
OK.
So here as you can see the value that we put inside of the index zero of these string values array is
Alamein.
OK.
And here it says our index number one the value that is inside of that index one is home.
So this is that value.
And here again it says index number to the value that is inside of that index.
Number two is table and here you can see that's a value.
OK.
So hopefully that makes sense.
And here let me actually show you another important point.
So as you can see here this aere has feet of values inside it.
OK.
This means that the size of this area is free.
OK.
So here if we actually want to output the size of this array through the lock I can just type in luck
that I O G comma and here I can just refer to the name of this area string values that lend plus to
double quotes in order to actually convert this value to a string value.
So now let's actually comment out this for loop so that we can see those values better.
So as you can see here in the log it says LUGG colon free.
And this means that the size of our string values array is free.
OK.
So this array.
So the size of this array is free.
So if we could actually assign only free values to this array.
So let's actually output another value to the.