get ascii value from char java code example
Example 1: how to convert an ascii number to character in java
char character = 'a';
int ascii = (int) character;
int ascii = 65;
char character = (char) ascii;
Example 2: ascii values to display certain characters in java
char a = 65, b = 66, c = 67;
System.out.println(a);
System.out.println(b);
System.out.println(c);
Example 3: ascii values to display certain characters in java
char a = 65, b = 66, c = 67;
System.out.println(a);
System.out.println(b);
System.out.println(c);