I need to concatenate two String arrays in Java.
String
void f(String[] first, String[] second) { String[] both = ??? }
What is t
You could try converting it into a Arraylist and use the addAll method then convert back to an array.
List list = new ArrayList(Arrays.asList(first)); list.addAll(Arrays.asList(second)); String[] both = list.toArray();