I\'m confused a bit. I couldn\'t find the answer anywhere ;(
I\'ve got an String array:
String[] arr = [\"1\", \"2\", \"3\"];
then
Guava has Joiner utility to resolve this issue:
Example:
String joinWithoutSeparator = Joiner.on("").join(1, 2, 3); // returns "123" String joinWithSeparator = Joiner.on(",").join(1, 2, 3); // returns "1,2,3"