Java Cookbook
zodiac
Problem:
You want to know the Chinese zodiac sign for a Gregorian year.
Solution:
Use the icu4j Chinese calendar to get the appropriate branch. The following code illustrates and example:
If you are testing any of these recipes in Eclipse and the characters are not displaying correctly in your console visit http://i18ncookbook.com/eclipse_settings.
This site is ad supported. I hope you find something among our sponsors worth clicking. ;)
i18n search
Custom Search