java char values code example
Example 1: java get an int from a char
char charValue = '2';
int intValue = Character.getNumericValue(charValue); // 2
Example 2: what is a char in java
Character ch = new Character('a');
Example 3: what is a char in java
char ch = 'a';
// Unicode for uppercase Greek omega character
char uniChar = '\u03A9';
// an array of chars
char[] charArray = { 'a', 'b', 'c', 'd', 'e' };