Answer:
Answer is given below
Step-by-step explanation:
The index of the smallest value returned by function positionMin(),
and it is done by line "return minPosition;"
The input array is given as an argument in function selSort() and it is done by line "public static void selSort(int [] vals)" Here vals is input array argument.