array copies code example
Example 1: java copy array
int[] a = {1,2,3,4,5};
int[] b = Arrays.copyOf(a, a.length);
Example 2: array copy c#
unsortedArray.CopyTo(unsortedArray2 , 0);
int[] a = {1,2,3,4,5};
int[] b = Arrays.copyOf(a, a.length);
unsortedArray.CopyTo(unsortedArray2 , 0);