I suggest that you remove the comma with
Integer.parseInt("22,959".replaceAll(",", ""));
This assumes that you are definitely not going to ever have to deal with European locales, like Portuguese where they use decimal for number separation and comma for fractions.
if you want to cope with alternative locales, you'll need to parse the String using Numberformat:
To format a number for the current Locale, use one of the factory class methods:
myString = NumberFormat.getInstance().format(myNumber);
To format a number for a different Locale, specify it in the call to getInstance.
NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH);
Then you just:
myNumber = nf.parse(myString);