Q:

Java Program to find ASCII value of a character

0

Program to find ASCII value of a character.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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);
           }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now