convert char number to int by ascii java code example
Example 1: java get an int from a char
char charValue = '2';
int intValue = Character.getNumericValue(charValue); // 2
Example 2: how to add a number to the ascii value of a char in java
char a = 97+1;
char b = 'a'+2;
r = (char)(1+5)