What do you mean?
That's exactly what happens in order.
1) An initial value is set
2) The framework checks to see if the condition in the middle has been reached
3) Action is taken
4) take action on the counter (in this case -- increment)
5) Is the condition still good?
6) Take action
8) Condition is no longer good
9) Drop out to next level of execution.
1. initialize a counter i and set to 0
2. give a condition: while counter is less than 2
3. while number 2 is true (meaning counter is still less than 2) execute the code inside the curly braces.
4. then increment the counter
5. check if the counter is still less than the 2
6. if it is still true, execute the code inside the curly braces again
7. increment the counter again
8. check the condition if the counter is still less than 2
9. if true execute the code, but this time its false so GO OUT of the loop and execute the code after going out which is "finished"