Indicates if the given character is lower case (a-z). - Java java.lang

Java examples for java.lang:char

Description

Indicates if the given character is lower case (a-z).

Demo Code


//package com.java2s;

public class Main {
    /**/*from   ww w .  j  a  v a  2s  . c  o  m*/
     * Indicates if the given character is lower case (a-z).
     * 
     * @param character
     *            The character to test.
     * @return True if the given character is lower case (a-z).
     */
    public static boolean isLowerCase(int character) {
        return (character >= 'a') && (character <= 'z');
    }
}

Related Tutorials