@@ -0,0 +1,584 @@
+package helpers;%0A%0Aimport java.lang.reflect.Array;%0A%0Apublic class ArrayMerger %7B%0A%0A    @SuppressWarnings(%22unchecked%22)%0A    public static %3CT%3E T%5B%5D mergeArrays(T%5B%5D... arrays) %7B%0A        int size = 0;%0A        for (T%5B%5D array : arrays) %7B%0A            size += array.length;%0A        %7D%0A%0A        T%5B%5D merged = (T%5B%5D) Array.newInstance(arrays%5B0%5D.getClass().getComponentType(), size);%0A%0A        int startIndex = 0;%0A        for (T%5B%5D array : arrays) %7B%0A            System.arraycopy(array, 0, merged, startIndex, array.length);%0A            startIndex += array.length;%0A        %7D%0A%0A        return merged;%0A    %7D%0A%7D%0A

Add array merging utility