package com.fr.function;
import com.fr.script.AbstractFunction;//看了下貌似包不存在
public class getCapital extends AbstractFunction { //去掉public编译能通过,但只要使用该函数就会提示异常 no function found: getCapital
public Object run(Object args) {
String strNum="";
int iNum= Integer.parseInt((String)args);
for(int i=0;i<=5;i++)
{
switch ( iNum % 10)
{
case 0 : strNum = " 零" + strNum;break;
case 1 : strNum = " 壹" + strNum;break;
case 2 : strNum = " 贰" + strNum;break;
case 3 : strNum = " 叁" + strNum;break;
case 4 : strNum = " 肆" + strNum;break;
case 5 : strNum = " 伍" + strNum;break;
case 6 : strNum = " 陆" + strNum;break;
case 7 : strNum = " 柒" + strNum;break;
case 8 : strNum = " 捌" + strNum;break;
case 9 : strNum = " 玖" + strNum;break;
}
iNum = iNum/10;
}
return strNum;
}
}谁能帮我编译下或者教下我