MyStringUtils.java 555 Bytes
package com.subsidy.util;

import java.util.List;

public class MyStringUtils {


    /**
     *  把集合改成字符串  去掉逗号
     */
    public static String changeListToString(List<String> list) {

        StringBuffer buffer = new StringBuffer();
        if (list.size() > 0) {
            int i= 0 ;
            for (String s : list) {
                buffer.append(s);
                if (i != list.size()-1){
                    buffer.append(",");
                }
            }
        }
        return buffer.toString();
    }





}