So as you can see here we actually created a variable of type integer in line 46 as you can see here
in line first is 8.
We decided to create a while loop.
OK.
So inside the practices of this why loop I specified that until the eye is less than or equal to number
10 Please execute these lines of code inside of these curly braces of this while loop.
OK.
So it can actually output of that value to the screen and then it's going to actually increase the number
at the value of this valuable by one each time.
This loop is executed.
So first the value of this idea is zero.
And then it's going to actually go and check this condition.
So it is less than number 10.
And then it's going to add one value to the site.
So and again the value of this over here now is 1.
And then it's going I try to check this condition again.
Why is the value of this OBALI but is one.
So it is less than number 10.
So it's.
So it's going to actually go inside of this y loop and add one value to this.
So now the value of this over the table is two.
So again you can actually check the condition and the value of this Ovadia bet which is two is less
than number 10.
So again it's going to actually go inside of this are curly braces so.
And then this going to actually add one value to the value of this over the table.
So now the value of this over the table is free.
Again free is less than number 10.
So again it's going to actually execute this that these lines of code.
So now it's going to actually add one value to the number of the value of this over the table.
So it is now not for Again it's going to check the condition for is less than number 10.
And and it continues until it reaches to number nine up until the value of this over the table is nine.
Again it's good to actually check the condition.
And nine is listed number 10.
So it's going to go inside of this of-I loop.
And again it's going to actually execute these lines of code here.
So now it's going to actually add one value to the value of this variable.
So I buy plus plus.
Now the value of this high value bet is 10.
So again it's going to try to check the condition 10 is actually equal to number 10.
This expression evaluates to true and then he's going to execute these lines of code here and then it's
going to actually add one value to the value of this variable.
So now the value of this over the table is 11.
OK.
Plus plus 11 and then he's going to check his condition again.
Now as you can see 11 is not less than or equal to number 10.
So it is going actually.
So it is going to actually ignore this why loop and then he's going to actually execute these lines
of code here under under this a while loop.
So it is not going to actually execute this while loop.
These are the value of this variable.
Is it greater than 10.
OK so now as you can see so that's why the value of this over the table is 11.
So hopefully that makes sense.
And let's actually comment out these lines of code here because now you want to actually talk about
the switch statement.
OK.
So here again just type pain and let's actually double click on this content and eliminate it.
That means that there is a tab here in order to make this area wider.
So now I want to actually are tracking tracking another takes through here so I can just practice large
stakes here and now I want to actually put a space between these two takes views.
So let's actually try another takes here and then put it between these two components and the less educated
it is the text of the state's view.
Let's find the margin attribute for the states we have.
And I can actually put the number 40 here.
And as you can see now there is a big space between these two components and it's actually double click
and these are large text you hear.
And for the text I can just typing value of switch statement.
OK.
And then this actually dragging a button here.
And let's actually put a space between these two components by actually dragging another takes you here.
And let's actually put it between these two components between this takes through and this button.
OK.
And let's actually delete the text of this text view here.
And let's actually put a value to the margin of this component here.
For example number 20.
And as you can see here now we have a space between these two components.
So now as you can see let's actually give an ID to this text you for example.
He makes the switch
and lets actually double click on this new bottom here and for the button just typing starts
switch and let's actually give an idea to disputant for example between speech and let's actually go
inside this main activity the job here and let's actually create another takes you and another Potten.
So I can't just type in text you see the switch
and then I put an assignment operator here and then I need to actually cast this object to a text view
object find you by id r r that Id Dot T X the switch.
OK.
And then this actually creates a button button between switch and that I put in an assignment operator
here and then I actually putting a pair of around brackets here in order to cast this object to about
an object.
So I can't just type in bottom find view by id r that ID that PTEN switch.
OK.
OK everyone.
Now let's actually make this between a switch button here a listener or two that the clicks that use
and make on these are a button here.
OK start the switch button.
So first after this.
And BT and loop that's it I click listen here.
OK.
At the end of this method at the end of this Smurfette we need to actually refer to the name of these
PTEN so each button here and by the way in order to actually find that Verity's is for example if it
is it is going to end.
You can actually click on this opening curly brace and now you can actually find the end in calibrates.
OK.
So I'd say this means that this is the opening curly brace and this is the end in calibrates.
OK.
So and in this way we can actually specify where the arm if is actually starting and where are my foot
is actually ending.
OK so as you can see here now the color of this opening curly brace and this closing curly brace is
yellow.
So hopefully that makes sense.
And here I can just type in between a switch that sets and click listener new view that unclick listen
at OK.
So now inside of this left inside of this ugly Mefford I can just first let's actually create a variable
of type strange.
So I can't just a strange and the name of my variable is for example names 3.
And then I put an assignment operator here and now I want to actually assign a value to my variable
for example our animal name.
OK.
So now I want to actually create a sweet statement here.
OK.
So switch and say the practices of First I need to actually specify the variable that I want to actually
switch between the values of that variable.
So now let me actually show you how you can do that.
Name string.
And then I need to actually open and close my switch statement by using these curly braces.
So so as you can see here first of all I actually created a variable of type string and here inside
of this Prentice's of this switch statement I am referring to the name of this variable in order to
access its value.
OK.
And here I am telling switch between the values of these names string variable.
Ok so here again just in case I can just put into double quotes here because our value above is of types
think we need to actually put in a value of type string here.
OK.
So I can't just put into double quotes and here I can't just type in any man one.
OK colon.
And now I can just put in a line of code for example TXI the switch that said text.
And here I can just put it to double quotes.
And now I can just type in our animal name
is animal one.
OK.
And then I need to actually break out of this switch statement here by using this break statement.
OK.
And this means that of and is actually switching between the values of this name string variable.