is char letter - Android java.lang

Android examples for java.lang:Character

Description

is char letter

Demo Code

/*//  w  ww.  j av a2  s  . c  o m
 *******************************************************************************
 * Copyright (C) 2009-2010, International Business Machines Corporation and    *
 * others. All Rights Reserved.                                                *
 *******************************************************************************
 */
//package com.java2s;

public class Main {
    public static boolean isAlpha(char c) {
        return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z');
    }
}

Related Tutorials