Task

Show how to concatenate two arrays in your language.



If this is as simple as array1 + array2, so be it.




public static Object[] concat(Object[] arr1, Object[] arr2) {
    Object[] res = new Object[arr1.length + arr2.length];
 
    System.arraycopy(arr1, 0, res, 0, arr1.length);
    System.arraycopy(arr2, 0, res, arr1.length, arr2.length);
 
    return res;
}