in java. using the following template as a method,
public static void shellSort(int[] array) {
create a program that counts the number of comparisons and swaps
of the sorting method does using
int array1[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; // Best Case Test
int array2[] = {10, 9, 8, 7, 6, 5, 4, 3, 2, 1}; // Worst Case Test
int array3[] = {10, 4, 8, 2, 6, 1, 9, 3, 7, 5}; //...