Got a selection sort from a previous programming class for plain old arrays that I've been trying to translate to array lists, but I'm missing key info on toArray or an easy way to copy the fields ...
int LastElementIndex = arr.length-i-1; //index of last Element after each step int MaxIndex = MaxIndex(arr,0,LastElementIndex); // index of maximum value, in the remaining unsorted array ...