Horje
how to check whether a character is alphabet or not in java Code Example
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');
}




Java

Related
compiling and running program in terminal Code Example compiling and running program in terminal Code Example
System.out.printf("%"+(n)+"s \n") Code Example System.out.printf("%"+(n)+"s \n") Code Example
{1 2 3 4 5 } Code Example {1 2 3 4 5 } Code Example
String list to Integer list Code Example String list to Integer list Code Example
ConnectionString connection timeOut mongodb java Code Example ConnectionString connection timeOut mongodb java Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8