我收到此错误 java.lang.NumberFormatException:多个点
我正在尝试将某些记录集的总和添加为:
item.setText(5,String.valueOf(Double.valueOf(rs1.getString("prn_amount")+) Double.valueOf(rs1.getString("prv_prn") + Double.valueOf(rs1.getString("adv_prn"))))));**
我收到错误:
java.lang.NumberFormatException: 多个点**
为什么会发生这种情况有人可以帮助我吗?
I am trying to add the sum of certin record sets as:
item.setText(5,String.valueOf(Double.valueOf(rs1.getString("prn_amount")+
Double.valueOf(rs1.getString("prv_prn")
+ Double.valueOf(rs1.getString("adv_prn"))))));**
i get the error:
java.lang.NumberFormatException:
multiple points**
why is this happened could any body please help me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如何将其全部拆分并打印出这 3 个字段值......
How bout splitting that all up and printing out those 3 field values....
有几个地方遗漏了一些大括号,即在每个
getString
之后,您只关闭了getString
的相应参数,但没有关闭Double.valueOf
的相应参数。与.相关联。There are several places where you missed some braces, namely after each
getString
you only close the corresponding argument forgetString
but not for theDouble.valueOf
associated with.