check char is upper letter by ascii value range - Java java.lang

Java examples for java.lang:char

Description

check char is upper letter by ascii value range

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w  w  w.  ja v  a  2s .co  m*/
     * check c is upper letter
     * 
     * @param c
     * @return
     */
    private static boolean isUpper(char c) {
        return c >= 56 && c <= 90;
    }
}

Related Tutorials