笔记
java.lang.NumberFormatException: For input string: " "
这个异常是说,在将字符串转换为number的时候格式化错误“”空的字符串有对应的数值吗,显然没有所以你可以Double.parseDouble(n.equals("")?"0":n);n是你需要转换的字符串
java.lang.NumberFormatException: For input string: " "
这个异常是说,在将字符串转换为number的时候格式化错误“”空的字符串有对应的数值吗,显然没有所以你可以Double.parseDouble(n.equals("")?"0":n);n是你需要转换的字符串