java.lang.NumberFormatException: For input string: "0.9"

示例代码

  1. 字符串转换数字类型转换错误。
  2. 不能把"0.9"转成Integer. 因为双精度的数字不能转成Integer, 因为正数才可以转成Integer。
  3. 错误示例

原文地址:https://www.cnblogs.com/Twittery/p/14421999.html