private String stringUtil(String string) { if (!string.contains(",")) { return "‘" + string + "‘"; }
String[] split = string.split(","); String str = ""; for (String s : split) { str = str + "‘" + s + "‘" + ","; } return str.substring(0, str.length() - 1); }
原文:https://www.cnblogs.com/libinshenbg/p/14501064.html