Question: in java programming Question 1: Write a method findMin that iterates over a non-empty array to find the index of the smallest element and returns
in java programming Question 1: Write a method findMin that iterates over a non-empty array to find the index of the smallest element and returns the index number of the target if found, or -1 otherwise. You will have to create your array with 15 elements in the main method and call the findMin method on the array to get the index of smallest element.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
