write a program in Java
to input a character and check whether it is a digit or letter
Answers
Answered by
2
We can check whether the given character in a string is a number/letter by using isDigit() method of Character class. The isDigit() method is a static method and determines if the specified character is a digit.
Similar questions