In this section, you will get the detailed explanation about the UnicodeBlock() method of String class. We are going to use UnicodeBlock() method of String class in Java. The description of the code is given below for the usage of the method.
String Determining a Character's Unicode Block
In this section, you will get the detailed explanation about the
UnicodeBlock() method of String class. We are going to use
UnicodeBlock()
method of String class in Java. The description of the code is given below for the usage of the method.
Description of the code:
As shown in the example we have taken a Unicode of a character. Then we have applied a method UnicodeBlock() to get the character out of the code. Therefore, we get the following output. Similarly, we can take other Unicode as well for different characters and on applying this method we can get that particular character as shown below.
Here is the code of the program:
|
Output of the program:
C:\unique>javac charUni.java C:\unique>java charUni ? C:\unique> |