A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/java/java-lang-character-unicodeblock-class-java/ below:

Java.lang.Character.UnicodeBlock Class in Java - GeeksforGeeks

Java.lang.Character.UnicodeBlock Class in Java

Last Updated : 13 Sep, 2023

Character.UnicodeBlock Class

represents particular

Character blocks

of the Unicode(standards using hexadecimal values to express characters - 16 bit) specifications. Character Blocks define characters used for specific purpose.

Declaration :
public static final class Character.UnicodeBlock
   extends Character.Subset
Methods of Character.UnicodeBlock Class : Java
// Java Program illustrating the use of
// Character.UnicodeBlock class Methods.
import java.lang.*;

public class CharacterSubsetDemo 
{
   public static void main(String[] args) 
   {
      // Use of forName() : 
      // returns Unicode Blocks, as per Unicode Standards
      System.out.println("Using UnicodeBlock.forName() : ");
      System.out.println(Character.UnicodeBlock.forName("OLDITALIC"));
      System.out.println(Character.UnicodeBlock.forName("NUMBERFORMS"));
      System.out.println(Character.UnicodeBlock.forName("MALAYALAM") + "\n");
      
      // Use of(char ch) :
      System.out.println("Using UnicodeBlock.of(char ch) : ");
      System.out.println(Character.UnicodeBlock.of(' '));
      System.out.println(Character.UnicodeBlock.of('\u21ac') + "\n");
      
      // Use of(int UCPoint) : 
      System.out.println("Using UnicodeBlock.of(int UCPoint) : ");
      System.out.println(Character.UnicodeBlock.of(1609));    
      System.out.println(Character.UnicodeBlock.of(1565));

   }
} 
Output :
Using UnicodeBlock.forName() : 
OLD_ITALIC
NUMBER_FORMS
MALAYALAM

Using UnicodeBlock.of(char ch) : 
BASIC_LATIN
ARROWS

Using UnicodeBlock.of(int UCPoint) : 
ARABIC
ARABIC
Note :

lang.Character.UnicodeBlock Class inherits others methods from

lang.Character.Subset Class

class which in turn inherits methods from

lang.Character.Object

class. For further details about java.lang.Object, refer :

lang.Character.Subset Class in Java

.

Object class in Java

.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4