Question: help me with the java coding problem Problem 1. Merge two-sorted array (MergeArray.java) Write a Java class named MergeArray that can merge two sorted arrays

help me with the java coding problem
help me with the java coding problem Problem 1. Merge two-sorted array

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) merge 0: this method has two integer array parameters, and returns a third sorted array. 2) main0: - 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 merge 0 method by passing the two arrays, and display the content in the returned new array. Note: you are NOT allowed to use the Arrays.sort 0 method to sort the array. Outputs: $ java MergeArray What is the length of the first array: 5 Please enter 5 elements: 03557 What is the length of the second array: 6 Please enter 6 elements: 113356

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!