Version: SE 8
User Program Communication
Object Oriented Programming
Searching for: Structures 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 if else block controls decision making by checking true/false statements resulting in different executions of code, depending on if the result is true and if the result is false. There are three parts to the if-else block: if, else if, and else.