(Find the index of the largest element) Write a method that returns the index of the
largest element in an array of integers. If there is more than one element, return
the largest index. Use the following header:
public static int indexOfLargestElement(double[] array)
Write a test program that prompts the user to enter 10 numbers, invokes this
method to return the index of the largest element, and displays the index and the
element itself.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here