How to parse number string containing commas into an integer in java?

Viewed 92154

I'm getting NumberFormatException when I try to parse 265,858 with Integer.parseInt().

Is there any way to parse it into an integer?

7 Answers
Related