Loop Basics

A loop is a control flow statement that may loop over a block of code. It might loop forever, a certain number of times, or under certain conditions.

Loop Infographic

Note: There is a mistake in the diagram: There are more than two types of loops.


To learn more about loops, visit the Java tutorial