Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 23 , 78 , 45 , 8 , 32 , 56 , 1 } ; int n = arr . length ; minMaxSelectionSort ( arr , n ) ; System . out . printf ( "Sorted array:NEW_LINE"); for ( int i = 0 ; i < n ; i ++ ) System . out . print ( arr [ i ] + " ▁ " ) ; System . out . println ( " " ) ; } }