标签:null 字符串 lse size static strong The font stat
public static String parenthesesSpeelStr(List<String> list) {
String str = "( ";
String quotes="\"";
if (list != null && list.size() > 0) {
for (int i = 0; i < list.size(); i++) {
if (i != list.size() - 1) {
str += quotes+ list.get(i)+quotes + ",";
} else {
str += quotes+ list.get(i)+quotes;
}
}
}
str += " )";
return str;
}
标签:null 字符串 lse size static strong The font stat
原文地址:https://www.cnblogs.com/zzl0916/p/11257638.html