import java.util.ArrayList; class SelSort { public static > void sort(ArrayList a) { for(int i=0; i> int findMinPos(ArrayList a,int pos) { for(int i=pos+1; i void swap(ArrayList a,int pos1,int pos2) { T temp = a.get(pos1); a.set(pos1,a.get(pos2)); a.set(pos2,temp); } }