Java

Program to find ASCII value of a character.

Program to find ASCII value of a character.
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);
           }
}
Nikhil Juneja

Passionate software developer and technical contributor at TutorialsLink.