Driver code
public static void main ( String [ ] args ) { int [ ] arr = { 999 , 612 , 589 , 856 , 56 , 945 , 243 } ; int n = arr . length ; mergeSort ( arr , n ) ; System . out . println ( " Sorted ▁ array ▁ " ) ; for ( int i = 0 ; i < n ; i ++ ) { System . out . print ( arr [ i ] + " ▁ " ) ; } } }