Java Data Type Tutorial - Java Character.toLowerCase(int codePoint)








Syntax

Character.toLowerCase(int codePoint) has the following syntax.

public static int toLowerCase(int codePoint)

Example

In the following code shows how to use Character.toLowerCase(int codePoint) method.

public class Main {
/* www .j  ava  2s. c o m*/
  public static void main(String[] args) {
    int cp1 = 0x0050;
    int cp2 = 0x2100;

    int cp3 = Character.toLowerCase(cp1);
    int cp4 = Character.toLowerCase(cp2);

    String str1 = "Lowercase equivalent of cp1 is " + cp3;
    String str2 = "Lowercase equivalent of cp2 is " + cp4;

    System.out.println(str1);
    System.out.println(str2);
  }
}

The code above generates the following result.