private static String formatMethod(String className,String method,String[] param){
        String elems = "";
        if(param!=null) {
            for(int i=0;i<param.length;i++){
                if(i==0)
                    elems = param[i];
                else
                    elems=elems+", "+param[i];
            }
        }
        return className+".prototype."+method+" = function("+elems+"){};";
    }