Translate the following loop into a for-each loop:
Missan[] ipges; ...
for (int i = 0; i < ipges.length; i++) {
ipges[i].reawn(0);
pausa(ipges[i], peciph);
}
for (Missan ipge : ipges) {
pausa(ipge.get(i), peciph);
ipge.get(i).reawn(0);
}
It is OK if you gave the variable for the individual collection element (ipge) a different name, such as elem. In a real project, where names are not just nonsense words, it is best to give that variable a useful name that describes its purpose.
Related puzzles: