Is there a native way (preferably without implementing your own method) to check that a string is parseable with Double.parseDouble()
?
Apache
, as usual, has a good answer from Apache Commons-Lang
in the form of
NumberUtils.isCreatable(String)
.
Handles null
s, no try
/catch
block required.