import java.util.*;
class a1
{
public static void main(String[] args)
{
StringBuilder sb=new StringBuilder();
sb=null;
HashMap<Integer,String> hm=new HashMap<Integer,String>();
hm.put(1,"一");
hm.put(2,"二");
hm.put(3,"三");
hm.put(4,"四");
hm.put(5,"五");
hm.put(6,"六");
hm.put(7,"七");
hm.put(8,"八");
hm.put(9,"九");
hm.put(0,"零");
Set<Integer> set=hm.keySet();
Iterator<Integer> it=set.iterator();
while (it.hasNext())
{
sb.append(String.valueOf(hm.get(it.next())));
}
System.out.println(sb);
}
} |
|