Program to print the ASCII values of alphabets:
package quipoin.javaeasyprograms;
public class ASCIIValue {
public static void main(String[] args) {
char x = 'A';
char y = 'a';
int as1 = x;
int as2 = y;
System.out.println(x+"="+as1);
System.out.println(y+"="+as2);
}
}
Output:
A=65
a=97