阿拉伯钱数转换为_Tag标签_程序员俱乐部

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