Enhanced for loop java: Enhanced for loop is useful when scanning the array instead of using for loop. Syntax of enhanced for loop is:
Here array_name is the name of array.
for (data_type variable: array_name)
Here array_name is the name of array.
Java enhanced for loop integer array
Download Enhanced for loop program.
Output of program:
No comments:
Post a Comment