Work on the ASCII standard began on October 6, 1960, with the first meeting of the American Standards Association's (ASA) (now the American National Standards Institute or ANSI) X 3.2 subcommittee. The first edition of the standard was published in 1963. Full Form of ASCII Is ( American Standard Code for Information Interchange). Print ASCII Value in Java.
ASCII Code Table – Printable, Non-Printable & Extended PDF.
Note: The class name should be the same as the program name
See Also C++ Program To Print ASCII Value Of Character
See Also C Program To Print ASCII Value Of Character
ASCII Code Table – Printable, Non-Printable & Extended PDF.
Note: The class name should be the same as the program name
See Also C++ Program To Print ASCII Value Of Character
How to Print ASCII Value in Java
import java.util.Scanner;
/*How to Print ASCII Value in Java*/
class ascii //class name
{
public static void main(String args[]) {
System.out.print("Enter Any Character to Print ASCII Value in Java: ");
Scanner sc = new Scanner(System.in);
char ch = sc.next().charAt(0);
int ascii = ch;
System.out.println("ASCII Value is: " + ascii);
}
}
See Also C Program To Print ASCII Value Of Character
0 Comments: