Integer.parse was not used because it's not really I18N-safe try ... { java.text.Format format = java.text.NumberFormat.getNumberInstance();} catch (Exception ex) ... { //todo ....}