I need to concatenate two String arrays in Java.
String
void f(String[] first, String[] second) { String[] both = ??? }
What is t
How about :
public String[] combineArray (String[] ... strings) { List tmpList = new ArrayList(); for (int i = 0; i < strings.length; i++) tmpList.addAll(Arrays.asList(strings[i])); return tmpList.toArray(new String[tmpList.size()]); }