public static String joinStringList(List<String> strList,String delimit){
  Iterator<String> entries=strList.iterator();
  StringBuilder builder=new StringBuilder();
  while (entries.hasNext()) {
    builder.append(entries.next());
    if (entries.hasNext()) {
      builder.append(delimit);
    }
  }
  return builder.toString();
}

public static String joinStringList ( List < String > strList , String delimit ) { Iterator < String > entries = strList . iterator ( ) ; StringBuilder builder = new StringBuilder ( ) ; while ( entries . hasNext ( ) ) { builder . append ( entries . next ( ) ) ; if ( entries . hasNext ( ) ) { builder . append ( delimit ) ; } } return builder . toString ( ) ; }
convert a list of strings into a single string
