public static int[] merge(int arr1[], int arr2[]) { int x = arr1.length + arr2.length; int[] arr3= new int[x]; x=0; int i =0, j=0; while ( i