public static final boolean isValidInteger(String intStr) { return (intStr == null) ? false : intStr.matches(" //d+"); }