Ask Question

Select the correct text in the passage.

Brian has created the following selection sort class in Java. In which line is the index of the smallest value returned? In which line is the input array given as an argument?

public class SelectionSort

private static int positionMin (int] vals, int startPosition) { int minPosition startPosition; for (int i startPosition; i

+1
Answers (1)
  1. 21 October, 10:23
    0
    Answer is given below

    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Select the correct text in the passage. Brian has created the following selection sort class in Java. In which line is the index of the ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers