### Question:
CNExpression { public String num2Chn(int num){ char s[]=new char[32],ch; int counter1,counter2; int chr,preChr=-1; int len=0; boolean suffixZero=true; counter1=0; counter2=0; while(num>0){ chr=num%10; if(chr!=0){ suffixZero=false; if(counter1>0){ s[len]=this.strUnit.charAt(counter1); len++; } if(num/10!=0 || counter1!=1 || chr!=1){ s[len]=this.strDigitOut.charAt(chr); len++; } } else{ if(!suffixZero) if(preChr!=0){ s[len]=this.strDigitOut.charAt(chr); len++; } } num=num/10; preChr=chr; counter1++; if(counter1==4){ counter1=0; counter2++; suffixZero=true; if(num%10000>0){ s[len]=this.strUnit.charAt(3+counter2); len++; } } } for(int i=0;i<len/2;i++){ ch=s[i]; s[i]=s[len-i-1]; s[len-i-1]=ch; } if(len==0){ s[len]=this.strDigitOut.charAt(0); len++; } return new String(s,0,len); } CNExpression(); int getAns(); String getAnswerInChn(); boolean setExpr(String str); int chn2Num(String str); int chn2Num(String str,Loc loc); int calculate(); String num2Chn(int num);  }### Answer:
@Test public void testNum2Chn() { }