Loading

Quipoin Menu

Learn • Practice • Grow

java-basic-program / Printing ASCII Value
tutorial

Printing ASCII Value

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

Need more clarification?

Drop us an email at career@quipoinfotech.com