Copyright © tutorialspoint.com

Java - toLowerCase() Method

previous next


Description:

The method returns the lowercase form of the specified char value.

Syntax:

char toLowerCase(char ch)

Parameters:

Here is the detail of parameters:

Return Value :

Example:

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

This produces following result:

c
c

previous next

Copyright © tutorialspoint.com