Implement a function that composes a new list of numbers consisting of elements of two passed lists arranged in ascending order, for example: (( 3, 9, 2, 73, 8, 3, 5 )) - ( 2, 3, 3, 5, 7, 8, 9)
Implement as a function
public static List cinteger > createNewList(List integer) list1, List<Integer> list2)
Do not change the transferred lists. For convenience to implement additional functions:
public static int copy(
List, integer> src. // list from which items are copied
int srcIndex, // position which copied from the src
List<Integer> dst // list which the elements copied in.
int dstIndex. // position from which elements are copied in dst
int count // number of copied elements
public static void sort(ListcInteger) list)