All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sqlite.util.StringUtils Maven / Gradle / Ivy

There is a newer version: 3.32.3.8
Show newest version
package org.sqlite.util;

import java.util.List;

public class StringUtils {
    public static String join(List list, String separator) {
        StringBuilder sb = new StringBuilder();
        boolean first = true;
        for(String item : list) {
            if (first)
                first = false;
            else
                sb.append(separator);

            sb.append(item);
        }
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy