I need to concatenate two String arrays in Java.
String
void f(String[] first, String[] second) { String[] both = ??? }
What is t
This should be one-liner.
public String [] concatenate (final String array1[], final String array2[]) { return Stream.concat(Stream.of(array1), Stream.of(array2)).toArray(String[]::new); }