I\'m confused a bit. I couldn\'t find the answer anywhere ;(
I\'ve got an String array:
String[] arr = [\"1\", \"2\", \"3\"];
then
Arrays.toString() can be used to convert String Array to String. The extra characters can be removed by using Regex expressions or simply by using replace method.
Arrays.toString(strArray).replace(",", "").replace("[", "").replace("]", "");
Java 8 has introduced new method for String join public static String join(CharSequence delimiter, CharSequence... elements)
String.join("", strArray);