table merging operations step comparison (if anycopy compare and compare and compare and compare and compare and compare and compare and compare and copy from to copy from to copy from to copy from to copy from to copy from to copy from to copy from to copy from to copy from to notice thatbecause is empty following step no more comparisons are necessaryall the remaining elements are simply copied from into listing shows java program that carries out the merge shown in figure and table this is not recursive programit is prelude to understanding mergesort listing the merge java program /merge java /demonstrates merging two arrays into third /to run this programc>java mergeapp ///////////////////////////////////////////////////////////////class mergeapp public static void main(string[argsint[arraya { }int[arrayb { }int[arrayc new int[ ]merge(arraya arrayb arrayc)display(arrayc )/end main(///merge and into public static void mergeint[arrayaint sizeaint[arraybint sizebint[arrayc