Quantcast
Channel: Experiences Unlimited
Viewing all articles
Browse latest Browse all 168

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

$
0
0

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();

Viewing all articles
Browse latest Browse all 168

Trending Articles