the minimum valueand the array elements pointed to by out and min are swapped listing shows the complete selectsort java program listing the selectsort java program /selectsort java /demonstrates selection sort /to run this programc>java selectsortapp ///////////////////////////////////////////////////////////////class arraysel private long[ /ref to array private int nelems/number of data items //public arraysel(int max/constructor new long[max]/create the array nelems /no items yet //public void insert(long value/put element into array [nelemsvalue/insert it nelems++/increment size //public void display(/displays array contents for(int = <nelemsj++/for each elementsystem out print( [ ")/display it system out println("")//public void selectionsort(int outinminfor(out= out<nelems- out++/outer loop min out/minimum for(in=out+ in<nelemsin++/inner loop if( [ina[min/if min greatermin in/we have new min