I\'ve seen similar questions and none provide the answer that I\'m looking for, so I apologize in advance if this is considered a duplicate. I\'m trying to combine arrays {1
Instead of
int[]c = new int[a+b];
You need to call your merge method and assign the result to the array like :
int[]c = merge(a,b);
Also you for loop should be :
int[]c = merge(a,b); for(int i=0; i