Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { @SuppressWarnings({ "rawtypes", "unchecked" }) public static String[] joinStringArray(String[]... arrays) { int size = 0; for (String[] array : arrays) { size += array.length; } java.util.List list = new java.util.ArrayList(size); for (String[] array : arrays) { list.addAll(java.util.Arrays.asList(array)); } return (String[]) list.toArray(new String[size]); } }