Java Array Concatenate concat(String[] parts)

Here you can find the source of concat(String[] parts)

Description

concat

License

Open Source License

Declaration

public static String concat(String[] parts) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

public class Main {
    public static String concat(String[] parts) {
        return Arrays.stream(parts).reduce((a, b) -> a.concat(" ").concat(b)).orElse("");
    }/*  w  ww  . j a va  2 s. c o  m*/
}

Related

  1. concat(int[] first, int[] second)
  2. concat(int[]... arrays)
  3. concat(Object[] array)
  4. concat(Object[] first, Object second)
  5. concat(String[] array, String separator)
  6. concat(String[] strs)
  7. concat(String[]... arrays)
  8. concat(T val, T[] vals)
  9. concat(T[] a, T[] b)