Java ASCII TableASCII stands for American Standard Code for Information Interchange. ASCII is a standard data-transmission code that is used by the computer for representing both the textual data and control characters. ASCII is a 7-bit character set having 128 characters, i.e., from 0 to 127. ASCII represents a numeric value for each character, such as 65 is a value of A. In our Java program, we need to manipulate characters that are stored in ASCII. In Java, an ASCII table is a table that defines ASCII values for each character. It is also a small subset of Unicode because it contains 2 bytes while ASCII requires only one byte.
Let's create a Java program for constructing the above ASCII table. In the Java program, we use the isWhitespace() method of the character for determining whether a character is a whitespace or not. We also use the built-in method IsISOControl() method for detecting characters that are not letters, digits and punctuation. ASCIITable.java Output: Next TopicSpark Java |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India