How Tos How to parse number string with commas to Integer or Long? By Mohamed Sanaulla on February 5, 2020 • ( Leave a comment ) 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:TwitterRedditLinkedInFacebookPrintEmailLike this:Like Loading... Related Categories: How Tos, Java