My insertion sort method is declared using this statement:
public static <AnyType extends Comparable<? super AnyType>>
void insertionSort(AnyType[] a){
I am having trouble understanding how to make this generic array type parameter accept an array of primitive type int.
How would I call this method with int[] as my parameter, or at least how would it be used to sort an int array?
Integerinstead.