Location of Largest Number in an Array
问题 My program is supposed to prompt the user to input the number of rows and columns in an array and then input the array. The location of the largest element in the array is then calculated and displays. My code keeps displaying (0,1) instead of the actual result, (1,2). Any ideas? My code: import java.util.Scanner; public class Question8_13 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the number of rows and columns in the array: ");