"N/A"不是整数。
NumberFormatException如果尝试将其解析为整数,则必须抛出该异常。
解析前请检查或Exception正确处理。
异常处理
try{ int i = Integer.parseInt(input);} catch(NumberFormatException ex){ // handle your exception ...}或- 整数模式匹配
String input=...;String pattern ="-?\d+";if(input.matches("-?\d+")){ // any positive or negetive integer or not! ...}


