Is there a better, more elegant (and/or possibly faster) way than
boolean isNumber = false; try{ Double.valueOf(myNumber); isNumber = true; } catch (Nu
See java.text.NumberFormat (javadoc).
NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); Number myNumber = nf.parse(myString); int myInt = myNumber.intValue(); double myDouble = myNumber.doubleValue();