Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Finding the ASCII value of a Character in java

public class AsciiValue {
    public static void main(String[] args) {
        char ch = 'a';
        int ascii = ch;
        // You can also cast char to int
        int castAscii = (int) ch;
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #Finding #ASCII #Character #java
ADD COMMENT
Topic
Name
7+4 =