프로그래밍/JAVA

숫자체크

GANADARA 2019. 4. 21. 19:12

public boolean isNumber(String str) {
    return str.matches("^[0-9]*$");
}