thread “main” java.lang.NumberFormatException: null

后端 未结 2 479
礼貌的吻别
礼貌的吻别 2021-01-29 16:14

I\'m a beginner to Java programming and I encounter the following exception:

Exception in thread \"main\" java.lang.NumberFormatException: null
            at ja         


        
2条回答
  •  时光取名叫无心
    2021-01-29 16:48

    That exception means that when you are executing this line of code

    id1 = Integer.valueOf(id).intValue();

    the value you are trying to convert into an integer (id), isn't a number.

    You need to double check your input file's format.

提交回复
热议问题