In my assignment the third step is to Call the method merge to merge the two lists in list1 so that the list1 remains sorted.
I write my code but it
public list mergeAndSort(List list1, List list2){ List list3; int list2Size = list2.size(); for(int i=0;i list2(j)){ small = list2(j; } } list3.add(small); //Smallest 1 will be added to the new list }
}