static public String listToString(List<String> list){
  StringBuilder builder=new StringBuilder();
  int itemCount=0;
  for (  String value : list) {
    itemCount++;
    if (itemCount > 1) {
      builder.append(",");
    }
    builder.append(value);
  }
  return builder.toString();
}

static public String listToString ( List < String > list ) { StringBuilder builder = new StringBuilder ( ) ; int itemCount = 0 ; for ( String value : list ) { itemCount ++ ; if ( itemCount > 1 ) { builder . append ( "," ) ; } builder . append ( value ) ; } return builder . toString ( ) ; }
generate a comma - delimited string of list items .
