Write a method that returns the index of the smallest element in an array of integers. If

Question:

Write a method that returns the index of the smallest element in an array of integers. If the number of such elements is greater than 1, return the smallest index. Use the following header:
public static int indexOfSmallestElement(double[] array)
Write a test program that prompts the user to enter ten numbers, invokes this method to return the index of the smallest element, and displays the index.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: