Fiveable
Fiveable

How can we rewrite the following for loop as an enhanced for loop? int[] array = {5, 4, 10, 23, 15} for (int i = 0; i < array.length; i++) { System.out.println(array[i]); }




© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.


© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.