java.lang.Character.UnicodeBlock.forName()


java.lang.Character.UnicodeBlock.forName()

package com.codingdict;



import java.lang.*;



public class CharacterUnicodeBlockDemo {



   public static void main(String[] args) {



      // returns the UnicodeBlock instance with blockName "BASIC_LATIN"

      System.out.println(Character.UnicodeBlock.forName("BASIC_LATIN"));



      // returns the UnicodeBlock instance with blockName "BasicLatin"

      System.out.println(Character.UnicodeBlock.forName("BasicLatin"));



      // returns the UnicodeBlock instance with specified blockName 

      System.out.println(Character.UnicodeBlock.forName("ARABIC"));

      System.out.println(Character.UnicodeBlock.forName("MUSICALSYMBOLS"));

      System.out.println(Character.UnicodeBlock.forName("TAMIL"));

   }

}