开发者

Reason for NumberFormat Exception(converting String to long)

开发者 https://www.devze.com 2023-01-20 15:30 出处:网络
Friend\'s, I\'m trying to convert an string into long type,开发者_如何学Pythonhere i\'m getting NumberFormat Exception,how can i fix this problem.I think you\'ve used

Friend's, I'm trying to convert an string into long type,开发者_如何学Pythonhere i'm getting NumberFormat Exception,how can i fix this problem.


I think you've used

Long.parseLong(String s)

or

String String.valueOf(long l)

so your string just doesn't contain a long number. That's it.

0

精彩评论

暂无评论...
验证码 换一张
取 消