/* * 数组转string,加分隔符 */ public static String listJoinToString(String split,Object[] strAry){ StringBuffer sb=new StringBuffer(); for(int i=0;i<strAry.length;i++){ if(i==(strAry.length-1)){ sb.append(strAry[i]); }else{ sb.append(strAry[i]).append(split); } } return new String(sb); }
时间: 2024-10-12 15:42:56