程序填空题:从键盘输入10个数,存入一维数组中,求最大值及最大值所有下标。Scanner sc=new Scanner(System.in);int[] num = new __(1)__;for (int i = 0; i <= 9; i++){System.out.println("请输入第" + (i+1) + "个数:" );__(2)__= Integer.parseInt(sc.nextLine());}int max = __(3)__;//max用于存储最大值int imax= ___(4)_;//imax用于存储最大值所在下标for (int i = 1; i <= 9; i++){if ( _(5)___){max = num[i];imax = i;}}System.out.println("最大值为:" + max + ",下标为:" + imax);