isDigit란?
Character 클래스의 isDigit 메소드는 주어진 문자가 숫자인지 판별하는 메소드입니다.
이 메소드는 특정 문자가 숫자인지 확인하고 그 결과를 boolean 값으로 반환합니다.
Java Character isDigit 공식문서 바로가기
Character (Java Platform SE 8 )
Returns the int value that the specified character (Unicode code point) represents. For example, the character '\u216C' (the Roman numeral fifty) will return an int with a value of 50. The letters A-Z in their uppercase ('\u0041' through '\u005A'), lowerca
docs.oracle.com
isDigit 메소드 사용 예제
isDigit 사용 예제 코드입니다.
char c1 = '5';
char c2 = 'a';
char c3 = '9';
System.out.println("c1 = " + Character.isDigit(c1)); // true
System.out.println("c2 = " + Character.isDigit(c2)); // false
System.out.println("c3 = " + Character.isDigit(c3)); // true
System.out.println("' ' = " + Character.isDigit(' ')); // false

주어진 문자가 숫자인지 아닌지 판별하여 true나 false를 반환합니다.