Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Implement generic insertion sort public static <E extends Comparable<E>> void

ID: 3665376 • Letter: 1

Question

1. Implement generic insertion sort

public static <E extends Comparable<E>> void insertionSort(E[] list){

//implement body

}

2. Implement generic bubble sort


public static <E extends Comparable<E>> void bubbleSort(E[] list){

//implement body

}

3. Implement generic merge sort


public static <E extends Comparable<E>> void mergeSort(E[] list){

//implement body

}

4. Implement generic heap sort


public static <E extends Comparable<E>> void heapSort(E[] list){

//implement body

}

Explanation / Answer

4) import java.util.*;

)

3) public class SorterApp {