Skip to content

Glossary: Java Basics

for loop

Also written: for

A loop used when you know how many times to repeat. It has a starting value, a condition and an update, separated by semicolons.

Where the book teaches it

Related terms

Loopwhile loopFor-each loop