/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
public static void main
(String[] args
) {
ToString2();
}
public static String ToString2
() {
int idades [] = {12,20,30,40};
int i;
for (i = 0; i < 4 ; i++){
System.
out.
println(idades
[i
]); }
for (i=0; i < idades.length;i++){
}
return "";
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewoJCVRvU3RyaW5nMigpOwoJfQogICAgcHVibGljIHN0YXRpYyBTdHJpbmcgVG9TdHJpbmcyKCkgewoKICAgICAgIGludCBpZGFkZXMgW10gPSB7MTIsMjAsMzAsNDB9OwogICAgICAgaW50IGk7CgogICAgICAgZm9yIChpID0gMDsgaSA8IDQgOyBpKyspewogICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGlkYWRlc1tpXSk7CiAgICAgICB9CiAgICAgICBmb3IgKGk9MDsgaSA8IGlkYWRlcy5sZW5ndGg7aSsrKXsKICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiaWRhZGVzICIrQXJyYXlzLnRvU3RyaW5nKGlkYWRlcykpOwogICAgICAgfQogICAgICAgcmV0dXJuICIiOwogICAgfQp9
12
20
30
40
idades [12, 20, 30, 40]
idades [12, 20, 30, 40]
idades [12, 20, 30, 40]
idades [12, 20, 30, 40]