I'm trying to convert this for each into a for loop. how do I do that?
here's the code im using
for (char character: word.toCharArray()) {
                    character = Character.toUpperCase(character);
                    
                    if (character >= 'A' && character <= 'Z') {
                        count[character - 'A']++;
                    }
                    
                }
Thanks in advance
 
    