Programming Code Center(PCC)
[JAVA]

(PCC)::[how-to-write-Java-Program-to-Find-ASCII-Value-of-a-character]::[java]

File Name : AsciiValue.java

public class AsciiValue {

    public static void main(String[] args) {

        char ch = 'a';
        int ascii = ch;
        // You can also cast char to int
        int castAscii = (int) ch;

        System.out.println("The ASCII value of " + ch + " is: " + ascii);
        System.out.println("The ASCII value of " + ch + " is: " + castAscii);
    }
}

Output :

AsciiValue.jpg