//字符串转换字符串数组
public static String[] split(String source){
if(source == null || source.trim().equals("")) return null;
//‘,’作为分隔符
StringTokenizer commaToker = new StringTokenizer(source, ", ");
String[] result = new String[commaToker.countTokens()];
int m=0;
while(commaToker.hasMoreTokens()){
result[m] = commaToker.nextToken();
m++;
}
return result;
}
String[] arr = str.split(",");