Question: help me with this java program, please use simple logic for novice programmer Problem 1. Merge two-sorted array (MergeArray.java) Write a Java class named MergeArray
Problem 1. Merge two-sorted array (MergeArray.java) Write a Java class named MergeArray that can merge two sorted arrays into a third sorted array. The class includes the following two methods: 1) merge0: this method has two integer array parameters, and returns a third sorted array. 2) main 0 : - First create two sorted arrays. The length of each array is an arbitrary number N determined by users input. Ask the user then to enter the numbers for each element in two arrays respectively. When entering numbers, make sure both the two arrays are sorted non-descendingly. - Call the merge0 method by passing the two arrays, and display the content in the returned new array. Note: you are NOT allowed to use the Arrays.sort0 method to sort the array. Outputs: $ java MergeArray What is the length of the first array: 5 Please enter 5 elements: 03557
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
