Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static String arrayListToString(ArrayList<String> stringList, String split) { StringBuilder builder = new StringBuilder(); if (null != stringList) { for (int i = 0; i < stringList.size(); i++) { builder.append(stringList.get(i).trim()); if (i < stringList.size() - 1) { builder.append(split); } } } return builder.toString(); } }