>>57
int a = Character.getNumericvalue( str.charAt(0) );