int a[ ]={1,2,3,4,5,6,7,8,9};数组中a[5]的值为:
A. 1
B. 5
C. 6
D. 7
public class Example01 { public static void main(String[] args) { int[] arr = { 4, 1, 6, 3, 9, 8 }; // 定义一个数组 int minIndex = 0; //初始时设第1个角标处的值为最小值 for (int i = 1; i < arr.length; i++) { if (________) { minIndex = i; } } System.out.println("数组中的最小值为:"+arr[minIndex]); } } 请问在上述程序的空白处填写下列哪段代码,可以求到数组的最小值:
A. i B. arr[i] C. arr[i]>arr[minIndex]
D. i>minIndex