//將 Set<String>
依指定分割符號轉回字串
public static String stringSetToStringWithSplitChar(Set<String>
stringSet, String splitChar) throws Exception {
String returnString = "";
for (String key :
stringSet) {
if (returnString.length() > 0)
returnString = returnString + splitChar + key;
else {
returnString = key;
}
}
return returnString;
}
沒有留言:
張貼留言