public class Main { public static void main(String[] args) { // print chars/alphabets from A to Z for(char ch = 'A'; ch<='Z'; ch++) { System.out.print(ch + " "); } } }