Incremental Java
while

Syntax

Here's how a while loop looks
while ( cond )
  while body
This looks very much like an if statement. cond is a condition. The while body must either be a block or a single statement.

A single statement is now extended to mean:

Semantics

Again, to remind ourselves of the while loop.
while ( cond )
  while body
The semantics of how to run this loop are:
  1. Evaluate cond
  2. If cond evaluates to true, run the while body, and go back to step 1
  3. If cond evaluates to false, skip the while body
In other words, the while body is repeated over and over until cond evaluates to false.