/** This method returns true is the given str is a number, otherwise false. @author: Dave Slemon @version 1.00 @param str is a string @return true if the str is a number other false */ public static boolean isNumeric(String str) { if (str == null) { return false; } try { double d = Double.parseDouble(str); } catch (NumberFormatException nfe) { return false; } return true; }