Output the symbol of the Sixty-fourteen hexagrams in Yijing

Source: Internet
Author: User

In the past, I used a very stupid method to manually draw the 64-hexagrams of Yijing. Later, we found that the 64 characters are in the Unicode Character Set. They are encoded from 0x4DC0 to 0x4DFF, that is, 19904 to 19967 in decimal format.

In this way, you do not need to use self-painting. It can be used directly as a character.

Public static class BuildYJChars {public static char [] GetChars () {List <char> chars = new List <char> (); for (int I = 19904; I <= 19967; I ++) {chars. add (char) I);} return chars. toArray ();}}

Then the 64 characters are displayed.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.