To convert
String
array to String
in Java, do this: String.join("", array)
.Here's how you do it:
String[] stringArray = new String[] { "Hello", " ", "World", "!" };
String oneString = String.join("", stringArray);
System.out.println(oneString); // Hello World!