if (str == null) {
if (!validateNumber(str)) {
    public static Integer createInteger(String str) {        // decode() handles 0xAABD and 0777 (hex and octal) as well.        if (str == null) {            return null;        }        return Integer.decode(str);    }