Imagine the user enters two lists of integers. Return a third array, which merges the first two arrays in
sorted order. For example, if the two input arrays were [1, 3, 2] and [7, 4] , your
code would return the array [1, 7, 3, 4, 2] .To save time, we've created a result array for you that is 100 elements long, and filled with zeroes; you can simply place the kept items into this array, in order. The grading script will remove the extra zeroes at the end automatically (and you can take a look at the cleanResult method in the template if you're curious how it works).Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the assessment. |