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
Instead of using string concatenation, you should use StringBuilder if your code is not threaded, and StringBuffer if it is.