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



Java characters tolowercase

Learn Java - Java tutorial - Java characters tolowercase - Java examples - Java programs

Description

Java - Method Character.toLowerCase() — The Character.toLowerCase () method - in Java returns the specified char value in lowercase (lower case).

Syntax

char toLowerCase(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.toLowerCase () returns the specified value in lowercase.

Sample Code

public class Test{

   public static void main(String args[]){
      System.out.println("Value \"N\" in the lower case: " + Character.toLowerCase('N'));
      System.out.println("Value \"j\" in the lower case: " + Character.toLowerCase('j'));
      System.out.println("Value \"4\" in the lower case: " + Character.toLowerCase('4'));
      System.out.println("Value \"#\" in the lower case: " + Character.toLowerCase('#'));
   }
}
click below button to copy the code. By - java tutorial - team

Output

Value "N" in the lower case: n
Value "j" in the lower case: j
Value "4" in the lower case: 4
Value "#" in the lower case: #

Related Searches to Java - Method Character.toLowerCase()