java get an int from a string of char en int code example
Example: java get an int from a char
char charValue = '2';
int intValue = Character.getNumericValue(charValue); // 2
char charValue = '2';
int intValue = Character.getNumericValue(charValue); // 2