Question: Using Java (Find the index of the smallest element) Write a method that returns the ir_.XO the smallest element in an array of integers. If
(Find the index of the smallest element) Write a method that returns the ir_.XO the smallest element in an array of integers. If the number of such elements i greater than 1, return the smallest index. Use the following header: 0 public static int indexOfSmallestElement (double[] array) Write a test program that prompts the user to enter 10 numbers, invokes th method to return the index of the smallest element, and displays the index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
