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