void main() {
    String word = "Java";

    for (int i = 0; i < word.length(); i++) {
        char letter = word.charAt(i);
        IO.println(letter);
    }
}

// From Groundwork, chapter 5 (ch05-repetition), box 7.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch05_07.java
