Answers for "check if the character is a digit"

8

check if char is number java

Character.isDigit(str.charAt(i));
Posted by: Guest on October-26-2020
0

check if digit or alphabet

# For alphabet
>>> 'A'.isdigit()
False
>>> 'A'.isalpha()
True

# For digit
>>> '1'.isdigit()
True
>>> '1'.isalpha()
False
Posted by: Guest on January-10-2022

Code answers related to "check if the character is a digit"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language