Find out the UnicodeBlock of the given character
The of method of Character.UnicodeBlock class gives infomration about the UnicodeBlock of any character.
public class CharWrapper {
public static void main(String[] args) {
char c = '1';
Character.UnicodeBlock cU = Character.UnicodeBlock.of(c);
System.out.println(cU);
}
}
Tags: char, Character, Character examples, Character wrapper class, java.lang, java.lang.Character
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply