While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be i
stringCollection.stream().collect(Collectors.joining(", "));