您的位置:首页 > 编程语言 > Java开发

How to parse number string with commas to Integer or Long?

2020-03-19 20:28 627 查看

https://sanaulla.info/2020/02/05/how-to-parse-number-string-with-commas-to-integer-or-long/


Below is the code used for parsing number string with commas to Integer or Long

String size = "277,517";
int sizeint = NumberFormat.getIntegerInstance().parse(size).intValue();

Share this:

Like this:

Like Loading...

Related

Categories: How Tos, Java

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐