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 {
/*from ww  w .ja v  a 2  s. 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.





















Home »
  Java Tutorial »
    java.lang »




Boolean
Byte
Character
Class
Double
Enum
Float
Integer
Long
Math
Number
Object
Package
Process
ProcessBuilder
Runnable
Runtime
SecurityManager
Short
StackTraceElement
StrictMath
String
StringBuffer
StringBuilder
System
Thread
ThreadGroup
ThreadLocal
Throwable