java tutorial - Java - Method Character.isLowerCase() - java programming - learn java - java basics - java for beginners



Java characters islowercase

Learn Java - Java tutorial - Java characters islowercase - Java examples - Java programs

Description

Java - Method Character.isLowerCase () — The Character.isLowerCase () method in Java determines whether the specified char value is in lowercase (lower case).

Syntax

boolean isLowerCase(char ch)
click below button to copy the code. By - java tutorial - team

Options

Detailed information about the parameters:

  • ch is a primitive character type (char).

Return value

  • In Java, Character.isLowerCase () returns true if the passed character is lowercase.

Sample Code

public class Test {

   public static void main (String args []) {
      System.out.println ("Value \"p\" in lowercase? Answer:" + Character.isLowerCase ('p'));
      System.out.println ("Value \"r\" in lowercase? Answer:" + Character.isLowerCase ('r'));
      System.out.println ("Value \"O\"in lowercase? Answer:" + Character.isLowerCase ('O'));
      System.out.println ("Value \"1\"in lowercase? Answer:" + Character.isLowerCase ('1'));
      System.out.println ("Value \"&\"in lowercase? Answer:" + Character.isLowerCase ('&'));
   }
}
click below button to copy the code. By - java tutorial - team

Output


Is the value of "p" lowercase? Answer: true
Is the value of "r" lowercase? Answer: true
Is the value "O" in lowercase? Answer: false
Is "1" in lowercase? Answer: false
Is "&" in lowercase? Answer: false

Related Searches to Java - Method Character.isLowerCase()