Skip to content

Glossary: Java Basics

while loop

Also written: while, while (true)

A loop that repeats as long as its condition is true, checking it before each pass. `while (true)` with a `break` inside means keep going until something says stop.

Where the book teaches it

Related terms

Loopbreak