How to determines whether a character is a lowercase in Java

1 Answer

0 votes
package javaapplication1;
 
public class JavaApplication1 {
 
    public static void main(String[] args) {
 
        char ch = 'w';

        boolean b;

        b = Character.isLowerCase(ch);
        System.out.println(b);
        
        System.out.println(Character.isLowerCase('W'));
        
        System.out.println(Character.isLowerCase('\n'));
    }
}
 
/*
run:

true
false
false
 
*/

 



answered Sep 15, 2016 by avibootz
edited Sep 16, 2016 by avibootz

Related questions

1 answer 161 views
1 answer 183 views
1 answer 163 views
1 answer 152 views
1 answer 153 views
...