Many options explored at http://www.coderanch.com/t/405258/java/java/String-IsNumeric
One more is
public boolean isNumeric(String s) { return s != null && s.matches("[-+]?\\d*\\.?\\d+"); }
Might be overkill but Apache Commons NumberUtils seems to have some helpers as well.