Here you can find the source of convertStringArrayToString( List
public static String convertStringArrayToString( List<String> stringList, String seperator)
//package com.java2s; import java.util.List; public class Main { public static String convertStringArrayToString( List<String> stringList, String seperator) { String value = ""; for (int i = 0; i < stringList.size(); i++) { String selectedItemValue = stringList.get(i); if (i != 0) { value += seperator + " "; }//from ww w .j a v a 2s . c om value += selectedItemValue; } return value; } }