func(""123",'456',789) 去除函数中的参数每个参数最外层的" "和' ' 也就是""123",'456'经过处理之后返回"123,456。
其中""代表字符串,和原有的已经不一样了
public class ParamUtil {
public static String[] getParam(String param) {
String[] rawParams = param.split(",");
int len = rawParams.length;
String[] gParams = new String[len];
for (int i = 0; i < len; i++) {
char[] c = rawParams[i].toCharArray();
int l = c.length;
if (c[0] == 34 || c[0] == 39) {
gParams[i] = String.valueOf(c, 1, l - 2);
} else {
gParams[i] = rawParams[i];
}
}
return gParams;
}
}