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








Syntax

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

public static boolean isTitleCase(int codePoint)

Example

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

public class Main {
/*from w  w  w. j  ava2  s .com*/
   public static void main(String[] args) {
      String str1 = "A titlecase character:" + Character.isTitleCase(0x01c8);
      String str2 = "A titlecase character:" + Character.isTitleCase(0x1f09);

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

The code above generates the following result.