Question: Which regular loop corresponds to this enhanced for loop? char[] vowels ['a', 'e', 'i', 'o', 'u'}; for (char item: vowels) { System.out.println(item); for (int
Which regular loop corresponds to this enhanced for loop? char[] vowels ['a', 'e', 'i', 'o', 'u'}; for (char item: vowels) { System.out.println(item); for (int i = 0; i < item; ++i) { System.out.println (vowels [i]); } - for (int i = 0; i < item.length; ++i) { System.out.println(vowels [i]); } for (int i=0; i < vowels.length; ++i) { System.out.println(vowels [i]); } for (inti-0; i < vowels.length; ++) { System.out.println(item [i]);
Step by Step Solution
3.50 Rating (163 Votes )
There are 3 Steps involved in it
Enhanced for loop Enhanced for loop is also said as for ... View full answer
Get step-by-step solutions from verified subject matter experts
