实际项目经常用到的
方法1 String symbol = (",").join(symbolList);
方法2:
String symbol = ((), ","); 用来代替下面的方法 StringBuffer sb = new StringBuffer(); for(Object _symbol : symbolList){ ("'").append(_symbol).append("',"); }
实际项目经常用到的
方法1 String symbol = (",").join(symbolList);
方法2:
String symbol = ((), ","); 用来代替下面的方法 StringBuffer sb = new StringBuffer(); for(Object _symbol : symbolList){ ("'").append(_symbol).append("',"); }