How to check if a char is a letter
function isCharacterALetter(char) {
return (/[a-zA-Z]/).test(char)
}
How to check if a char is a letter
function isCharacterALetter(char) {
return (/[a-zA-Z]/).test(char)
}
how to check whether a character is alphabet or not in java
//Long version:
private (static) boolean isAlphabet(char c) {
return (c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z');
}
//SHort version:
private (static) boolean isAlphabet(char c) {
return if (c in 'a'..'z' || с in 'A'..'Z' || c in '0'..'9');
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us