return toIntValue(ch.charValue());
return ch - 48;
    public static int toIntValue(Character ch) {        if (ch == null) {            throw new IllegalArgumentException("The character must not be null");        }        return toIntValue(ch.charValue());    }