int[] arr = {6789,573525,63190,615175,1332,109}; int a =arr[0]; for(int c =0; c < arr.length;c ++) { System.out.println("输出编号为"+c+"的数组:" + arr [c]); if(a < arr[c]) { a = arr[c]; } } System.out.println("最大值是 = " + a);
答案就不传了 截图用不了了 ( @~@`)