org.sqlite.util.StringUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sqlite-jdbc Show documentation
Show all versions of sqlite-jdbc Show documentation
SQLite JDBC library with encryption and authentication support
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();
}
}