logo

Java ToLowerCase() Method


Show

The process returns the lowercase type of the individual char object. The java string toLowerCase() process returns the series in the lowercase letters. In other words, it alters all characters of the string into lower case letters. The toLowerCase() method works same as toLowerCase(Locale. getDefault()) method.

Syntax

boolean tolowercase(char ch)

Parameters

Here is the detail of parameters −

  • ch − Primitive character type.

Return Value

  • This method returns the lowercase form of the specified char value.

Example

public class Test {

   public static void main(String args[]) {
      System.out.println(Character.toLowerCase('c'));
      System.out.println(Character.toLowerCase('C'));
   }
}

This will produce the following result:

Output

c
c

Here at Intellinuts, we have created a complete Java tutorial for Beginners to get started in Java.