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
You should probably use a StringBuilder with the append method to construct your result, but otherwise this is as good of a solution as Java has to offer.