for character in "abc":
print(character.upper()) # Prints A, then B, then C
public class Cat {
// Method of the Cat class
public void speak() {
Console.writeline("Meow!");
}
}
String[] names = { "Zoe", "Chloe", "Joey" };
// Print all of the names in the array
for (String name in names) {
System.out.println(name);
}