Java Data Type Tutorial - Java Character MODIFIER_LETTER








Syntax

Character.MODIFIER_LETTER has the following syntax.

public static final byte MODIFIER_LETTER

Example

In the following code shows how to use Character.MODIFIER_LETTER field.

//  w w  w  . jav a2 s  . c  om
public class Main{
   public static void main(String[] args) {
     for(int ch = Character.MIN_VALUE;ch<Character.MAX_VALUE;ch++){
       if(Character.MODIFIER_LETTER == Character.getType(ch)){
         System.out.println((char)ch);
       }
     }
   }
}

The code above generates the following result.