And actually Harvard are mouse pointer over the area.
So as you can see here wrong.
Second argument type found in require Java lang that string.
So we need to actually putting a string value.
So in order to convert this integer value to a string value I just need to type in.
I just need to put in a plus operator here and then I need to put into double quotes if I actually run
my project.
Let's see what happens.
OK everyone.
Now as you can see our application is actually running on this emulator.
OK.
So here first of all I need to actually click on this.
Start the loop button here in order to execute these lines of code.
Here is this for loop here.
OK.
So as you can see here this for loop is inside of the stack like listener Meffert that is related to
the Spithead loop button.
OK.
So I just need to click on this start button here and let's see what happens.
So as you can see here I clicked this button.
OK.
Now as you can see here this is our luck.
OK.
So here as you can see there is a log level here.
So just click on this here and then choose info.
So as you can see here this I hear this a lot that this stands for info.
OK.
So that's why we actually typed in a large dot.
OK.
And now here instead of disserved just type it here l o g here as you can see with the uppercase letters.
So as you can see here these are the values that are outputted here which is 0 1 2 3 and 29.
OK.
So here we specified that the that the initial value is zero.
So now let me ask you to make this area bigger.
So here you are as you can see if you specified that the initial value is 0.
OK.
X 0.
So this is our initial value.
And here we specified that the X is less than 50.
So it can actually execute for the for loop 13 times or 0 1 to 29.
OK.
As you can see here the initial value is 0 and we specified that this loop is going to be executed until
the xx is less than 50.
So as you can see here number two in nine we're going to actually add one value to the value of the
Axworthy a bell every time this loop is executed.
OK.
As you can see numbers 0 to number 29.
Now I want to talk about the break statement.
OK.
So inside this main activity that you have a file and inside of this for loop I want to actually use
an if statement here.
OK.
If and that inside the prentices I can just type in x is equal to number.
For example 10.
And then I actually open and close my statement by using these curly braces.
I can just type in break.
OK.
So now let's actually let our project and see what happens.
As you can see here we've got these start the loop pattern here OK so we need to click this button in
order to execute this for loop here OK.
So start the loop ok everyone.
Now as you can see our application is actually running on this emulator here.
And then let's actually click on this start button here because we need to actually click this button
in order to execute this for loop here.
OK.
So I can just click this button here.
And as you can see here now it can actually execute this for loop here.
OK.
So as you can see here we've got some informations that are actually related to the old cats.
OK.
So in order to actually delete these locks we need to actually click these are this clear locked Chad
here.
OK.
OK it is clear.
Look Chad here.
OK so just click on this a clear cut as you can see now the lock Chad is empty.
OK.
So again click on this.
Start the loop here.
And now these are the new information.
OK.
So as you can see here first of all let me point out that we created a full loop here OK for int x is
equal to zero.
X is less than a 30 x plus plus.
OK.
And then inside the for loop I specified that if x is equal to number 10 and break.
OK.
And that in line 65.
I actually decided to output these are values the value of the X valuable to the lock.
OK.
So let's see what is happening here.
0 1 2 3 4 5 6 7 8 9.
As you can see here of when it actually reaches this not the number 9.
It is actually breaking out of this for loop here.
And it is not going to actually execute this for loop anymore.
So that's the job of play.
It is going to actually break out of that a for loop.
OK.
So hopefully that makes sense.
And now I want to actually create an example about it to continue.
So let's actually comment out these lines of code here.
And now let's actually again create up an if statement if and that inside the prentices I can just type
in x is equal to number.
For example 5 and then I need to actually open and close my statement by using this curly braces.
And then inside the curly braces I can just typing continue.
So let's actually run our project and see what happens.
OK everyone.
Now as you can see our application is actually running on this emulator here.
OK.
So first let's actually so first of all let's actually deleted these logs here.
OK.
These are the old lugs.
So we don't need them here.
So just click on this are clear like that here.
And let's actually click this Tarth the loop button here and now as you can see these are the new information.
OK.
So 0 1 2 3 4 6 as you can see.
We cannot see number five here.
OK.
It didn't actually execute this line of code here.
When it reaches number five.
OK this for loop is going to be executed 30 times.
It can actually start with the number 0 1 2 and 2 number 29 which is going to be 50 times that this
loop is going to be executed.
OK.
But when it reaches the number five it is not going to execute this line of code.
It is not going to execute.
Are other lines of code after this statement here.
OK.
And this means and this means it's going to to go again inside of this for loop and add one value to
the value of the variable.
So when it reaches the number five it is not going to actually execute other lines of code.
After this if statement and it's going I should add one value to the value of the x variable and then
it's going to actually be number 6.
So as you can see here this is number 6 and 7 and so on.
OK.
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 calls and then I'll do my best to answer
your questions.
And thank you very much for watching and I'll see you in the next tutorial.