您可以使用collect()方法将字符串数组转换为单个数组。
import java.util.Arrays;
import java.util.stream.Collectors;
public class CreatngStringFromArray {
   public static void main(String args[]) {
      String [] myArray = {"Welcome", "to", "Nhooo"};
      String str = Arrays.stream(myArray).collect(Collectors.joining(" "));
      System.out.println(str);
   }
}输出结果
Welcome to Nhooo