is char English Letter - Java java.lang

Java examples for java.lang:char

Description

is char English Letter

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        char input = 'a';
        System.out.println(isEnglishLetter(input));
    }//from  www. j a v a2  s  .  co  m

    public static boolean isEnglishLetter(char input) {
        return (input >= 'a' && input <= 'z')
                || (input >= 'A' && input <= 'Z');
    }
}

Related Tutorials