Question: pls help 42 Assuming you have two ArrayLists with each containing well-spelled words sorted alphabetically. Do the following: Write a Java generic method mergeSorted() that
Assuming you have two ArrayLists with each containing well-spelled words sorted alphabetically. Do the following: Write a Java generic method mergeSorted() that merges two sorted ArrayLists (as parameters) and returns the merged result, an alphabetically sorted ArrayList. NOTE: 1) O(n) performance is expected of the mergeSorted() algorithm, where n is the total count of the words in both files. 2) if you have trouble with Java generic method syntax, you may create a method to just merge two sorted String ArrayLists to earn up to 90% of the mark
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
