The most sophisticated way for creating comma-separated Strings from a Collection/Array/List?

Use the Google Guava API‘s join method:

Joiner.on(",").join(collectionOfStrings);

Leave a Comment