http://www.javaeye.com/topic/766812里谈到题目:将正整数的阿拉伯钱数转换为中文形式,如1011→一千零一十一,输出。作者做得相当啰嗦,也比较低效,正好有缘遇到优雅代码大师区区在下,于是一段优雅代码得以诞生:publicclassMoneyTrans{privatestaticString[]ChinaDigit={"零","一","二","三","四","五","六","七","八","九"};privatestaticString[]UNIT={"",""...
查看全文