min out/minimum for(in=out+ in<nelemsin++/inner loop if( [ina[min/if min greatermin in/we have new min swap(outmin)/swap them /end for(outer/end selectionsort(//private void swap(int oneint twodouble temp [one] [onea[two] [twotemp///end class arraysel ///////////////////////////////////////////////////////////////class selectsortapp public static void main(string[argsint maxsize /array size arraysel arr/reference to array arr new arraysel(maxsize)/create the array arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )arr insert( )/insert items arr display()/display items arr selectionsort()/selection-sort them arr display()/end main(/end class selectsortapp /display them again /