175k views
0 votes
a(n) ___ loop allows you to cycle through an array without specifying the starting and ending points for the loop

User Destini
by
3.9k points

1 Answer

3 votes

Answer:

enhanced for loop

Step-by-step explanation:

Enhanced for loop is an improve concept about loops, this features was implemented in Java SE 5.0 version, this method simplify the For structure. For example:

for (int i = 0; i <array.length; i ++) {

System.out.print (array [i]);

}

Enhanced for loop

for (String element : array) {

System.out.print(element);

}

User Patrick McGloin
by
3.9k points