public class LunarDateConverter1 private static final String lunarMonths = 正 二 三 四 五 六 七 八 九 十 冬 腊 ; private static final String lunarDays = 初 十 廿 卅 ; private s
代码没有语法错误,但是无法运行,因为在代码中使用了Calendar类,这个类在Java 8中已经被弃用。建议使用java.time包中的类来实现日期的计算和转换。
原文地址: https://www.cveoy.top/t/topic/igJ6 著作权归作者所有。请勿转载和采集!