while Java Keyword

The while keyword specifies a loop that is repeated as long as a condition is true.

Examples

  while (!found)
  {
     <statements>
  }
  

Remarks

None.

Related Topics

break Java Keyword

continue Java Keyword

do Java Keyword

for Java Keyword