Here you can find the source of joinStringList(String delimiter, List
public static String joinStringList(String delimiter, List<String> stringList)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static String joinStringList(String delimiter, List<String> stringList) { String result = ""; boolean isFirst = true; for (String s : stringList) { if (!isFirst) { result = result + delimiter; }/*from www . j a v a2 s . c o m*/ isFirst = false; result = result + s; } return result; } }