文档介绍:.newer;/**Tochangethistemplate,chooseTools|Templates*andopenthetemplateintheeditor.*///.;;;;;/***将阿拉伯数字金额转换成中文大写数字金额的转换类****@authoryzy*/lassMoneyConvert{*将阿拉伯数字金额转换成中文大写数字金额****@parammoney****@Money(doublemoney){//转换成指定格式的数字NumberFormatfmt=();(2);//();//(false);//不要千分号money=((money));Map<Integer,String>numbersMap=newHashMap<Integer,String>(10);String[]section={"","萬","億","兆"};//拆分为四大块,精确到万亿位,即兆//String[]positions={"拾","佰","仟"};String[]numbers={"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"};for(inti=0;i<;i++){(i,numbers[i]);}Stringresult="";//(如果有)if((money).contains(".")){intremainder=(int)((money*100)%100);//取余inta=remainder/10;if(a!=0){result=(a)+"角";}intb=remainder%10;if(b!=0){if(a==0){result+=(0)+(b)+"分";//处理特殊情况,(贰圆零伍分)}else{result+=(b)+"分";}}}//=(long)(money*100/100);//取整if(total==0){("")?((0)+"圆"):result;//少于1元}intj=0;StringtempResult="";do{//每次处理四位数longt=(total%10000);Stringstr=((int)t,numbersMap,null);total=total/10000;if(total!=0&&t>0&&t<1000){str