Java Program to Display Character from A to Z
In this example, we are giving a program to display character from A to Z.
To display character from A to Z:
# To display character from A to Zpublic class Characters {public static void main(String[] args) {char c;for(c = 'A'; c <= 'Z'; ++c)System.out.print(c + " ");}}
Output:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z