Java provides iteration statements called as loops.
When an instruction is repeated till the condition is satisfied is known as loop. When the condition will be false, the loop will be terminated.
Java has very flexible three looping mechanisms. You can use one of the following three loops:
- while Loop
- do...while Loop
- for Loop
- enhanced for loop