public static void change(int i)
{
StringBuilder sb=new StringBuilder();
String[] s={"零","一","二","三","四","五","六","七","八","九"};
//int[] arr={1,2,3};
String int_s=i+"";
char[] c=int_s.toCharArray();
for(int x=0;x<c.length;x++)
{
String temp=new String(c[x]+"");
int index=Integer.parseInt(temp);
System.out.println(s[index]);
}
} |