Java Program to Find ASCII Value
In this example, we are giving a program to find ASCII value of a character.
To find ASCII value:
# To find ascii valuepublic class AsciiValue {public static void main(String[] args) {char ch = 'a';int ascii = ch;System.out.println("The ASCII value of " + ch + " is: " + ascii);}}
Output:
The ASCII value of a is: 97