SyntaxFix
Write A Post
Hire A Developer
Questions
As always, the Jakarta Commons have at least part of the answer :
NumberUtils.isNumber()
This can be used to check most whether a given String is a number. You still have to choose what to do in case your String isnt a number ...