HOME      BLOG       FORUMS      CONTACT       ABOUT

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);
	}
}

Share

Tags: , , , , ,


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.

AddThis Social Bookmark Button

Leave a Reply