(String[] args)
| 3 | |
| 4 | public class ShellSortMain { |
| 5 | public static void main(String[] args) { |
| 6 | int[] array = { 22, 53, 33, 12, 75, 65, 887, 125, 37, 977 }; |
| 7 | System.out.println("Before Sorting : "); |
| 8 | System.out.println(Arrays.toString(array)); |
| 9 | System.out.println("==================="); |
| 10 | System.out.println("After Sorting : "); |
| 11 | array = shellsort(array); |
| 12 | System.out.println(Arrays.toString(array)); |
| 13 | } |
| 14 | |
| 15 | private static int[] shellsort(int[] array) { |
| 16 |