Java tutorial
//package com.java2s; import java.util.List; public class Main { public static String list2String(List<String> list, String splitter) { StringBuilder sb = new StringBuilder(); int len = list.size(); for (int i = 0; i < len; i++) { sb.append(list.get(i)); if (i != len - 1) { sb.append(splitter); } } return sb.toString(); } }