is char Alphabetic - Android java.lang

Android examples for java.lang:Character

Description

is char Alphabetic

Demo Code


//package com.java2s;

public class Main {
    static public boolean isAlphabetic(char c) {
        return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
    }/*from   w w  w.j  a  va 2s  .c om*/
}

Related Tutorials