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

Java examples for java.lang:char

Description

check char is lower letter by ascii value range

Demo Code


//package com.java2s;

public class Main {
    /**/* w w  w  .j  ava 2 s  .c  o m*/
     * check c is lower letter
     * 
     * @param c
     * @return
     */
    private static boolean isLower(char c) {
        return c >= 97 && c <= 122;
    }
}

Related Tutorials