I need some help with this code, when i try to show all chars in Java with the "for loop" it's okay, java shows me all, when i do this with the "for each" i have only undefined symbols
char[] chars = new char[65535];
for (int go = 0; go < chars.length; go++) { // THIS CODE IS OKAY!
// for (int go : chars) { // **THIS CODE DOESN'T WORKS! WHY??**
chars[go] = (char) go; // Change int type to char
}
for (char owo : chars) { // Output characters
System.out.println(owo);
}