(String[] args)
| 26 | } |
| 27 | |
| 28 | public static void main(String[] args) { |
| 29 | int a[] = { 92, 50, 5, 20, 11, 22 }; |
| 30 | InsertionSort i1 = new InsertionSort(); |
| 31 | System.out.println("\nBefore sorting array elements are - "); |
| 32 | i1.printArr(a); |
| 33 | i1.insert(a); |
| 34 | System.out.println("\n\nAfter sorting array elements are - "); |
| 35 | i1.printArr(a); |
| 36 | System.out.println(); |
| 37 | } |
| 38 | } |