More specifically, the looping statements. Learn the foreach loop. Our first statement is the while loop.
All control statements use boolean expressions.
This means that the expression must evaluate to either a true or false value. Since myInt was initialized to 0, the boolean expression will return true the first time it is evaluated. When the boolean expression evaluates to true, the block immediately following the boolean expression will be executed. Within the while block we print the number and a space to the console. Once the statements in the while block have executed, the boolean expression is evaluated again.