enhanced for loop 2c

Solutions on MaxInterview for enhanced for loop 2c by the best coders in the world

showing results for - "enhanced for loop 2c"
Simona
27 Jun 2018
1for (String element : array) {    System.out.println("Element: " + element);}
Bob
02 Jul 2020
1for (int i=0; i < array.length; i++) {    System.out.println("Element: " + array[i]);}