如何防止java.lang.NumberFormatException:对于输入字符串:“N / A”?
2022-08-31 11:15:56
在运行我的代码时,我得到一个:NumberFormatException
java.lang.NumberFormatException: For input string: "N/A"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.valueOf(Unknown Source)
at java.util.TreeMap.compare(Unknown Source)
at java.util.TreeMap.put(Unknown Source)
at java.util.TreeSet.add(Unknown Source)`
如何防止发生此异常?