My Java Quiz

The ultimate place to learn Java!

Question #60: What gets printed by code below?

String spell= "aefg";
String result = "";
for(int k = 0; k< spell.length(); k++){
  result += Character.toString((char)(spell.charAt(k)-32));
}
System.out.println(result);