Given a list
List l = new ArrayList(); l.add(\"one\"); l.add(\"two\"); l.add(\"three\");
I have a method
In Java 8 you can use String.join() like following:
String.join()
Collection elements = ....; String result = String.join(", ", elements);