public static void main(String[] args) {
System.out.println(Integer.parseInt(""));
}
当通过Integer.parseInt()
方法将字符串转为Integer类型时,如果字符串是空串,或者需要转换的字符串大小已经超过了int大小时候,就会报 For input string:xxx
public static void main(String[] args) {
System.out.println(Integer.parseInt(""));
}
当通过Integer.parseInt()
方法将字符串转为Integer类型时,如果字符串是空串,或者需要转换的字符串大小已经超过了int大小时候,就会报 For input string:xxx