How to determines whether the specified char value is lowercase in Java

1 Answer

0 votes
public class MyClass {
    public static void main(String args[]) {
        char ch = 'a';
      
        System.out.println(Character.isLowerCase(ch));
        
        System.out.println(Character.isLowerCase('Q'));
    }
}



/*
run:

true
false

*/

 



answered Jan 17, 2020 by avibootz

Related questions

...