String[] myArray = { "this", "is", "a", "sentence" }; String result = Arrays.stream(myArray) .reduce("", (a,b) -> a + b);