Given two sorted integer array a and b, write a method that…

Given two sorted integer array a and b, write a method that will merge the two sorted array into one sorted array and return it. No pre-defined method such as array.sort(), System.arraycopy() etc. can be used.  int[] merge(int[] a, int[] b) { //add your code here }