Driver method
public static void main ( String args [ ] ) { int arr [ ] = { 12 , 34 , 54 , 2 , 3 } ; System . out . println ( " Array ▁ before ▁ sorting " ) ; printArray ( arr ) ; ShellSort ob = new ShellSort ( ) ; ob . sort ( arr ) ; System . out . println ( " Array ▁ after ▁ sorting " ) ; printArray ( arr ) ; } }