java program to display characters from a to z using loop

Java
public class Characters {

    public static void main(String[] args) {

        char c;

        for(c = 'A'; c <= 'Z'; ++c)
            System.out.print(c + " ");
    }
}
Source

Also in Java: