Enhanced for loop java example

Enhanced for loop java: Enhanced for loop is useful when scanning the array instead of using for loop.
Syntax of enhanced for loop is:
for (data_type variable: array_name)
Here array_name is the name of array.
Code
class EnhancedForLoop {
public static void main(String[] args) {
in...