import java.util.*;
import java.lang.*;
import java.io.*;
public class AsciiValue
{
public static void main(String[] args)
{
char ch = 'a';
int ascii = ch;
System.out.println("The ASCII value of " + ch + " is: " + ascii);
}
}Java
Program to find ASCII value of a character.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
