Write the following method that merges two sorted arrays into a new sorted array public static int [] merge (int [] array1, int [] array2) { / / add your code here } public static void main (String [] args) { int [] array1 = {1, 5, 16, 61, 111}; int [] array 2 = {2, 4, 5, 6} int [] mergedArray = merge (array1, array2); System. out. println (Arrays. toString (mergedArray)); } java doc
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write the following method that merges two sorted arrays into a new sorted array public static int [] merge (int [] array1, int [] array2) ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » Write the following method that merges two sorted arrays into a new sorted array public static int [] merge (int [] array1, int [] array2) { / / add your code here } public static void main (String [] args) { int [] array1 = {1, 5, 16, 61, 111};