/** * This class holds our Selection Sort code. */ public class Sorting { /** * Searches through the array that's passed in, starting at * position start, and returns the *position* of the smallest * item found between start and the end of the array. * * @param nums The array we're searching * @param start Where to start our search * @return The index of the smallest item */ public int findSmallest(int[] nums, int start) { int idxOfMin = start; for(int i=start+1; i