Pages

Java Regex Numeric

public boolean isNumeric(String text) {
        b = f;
        if (isNotEmpty(text)) {
            if (text.matches("[0-9]+")) {
                b = t;
            }
        }
        System.out.println("-" + text);
        return b;
    }

No comments:

Post a Comment