Version: SE 8
User Program Communication
Object Oriented Programming
Searching for: For In Loop in Java
The for loop is a control structure that executes a block of code a specified number of times.
The for-each loop iterates through every element in the array, without specifying size.
The while loop executes a block of code while a boolean expression evaluates to true. It terminates as soon as the expression evaluates to false. The boolean expression is evaluated before each iteration.