13行以下的删除。用以下示例代码:
int[] scores = {12,3,34,67,100,99};
IntStream intStream = IntStream.of(scores);
IntSummaryStatistics statistics = intStream.summaryStatistics();
System.out.println("the max:" + statistics.getMax());
System.out.println("the average:" + statistics.getAverage());
for循环里a[0] > a[-1]越界了
你的报错,第24行,j初始值是0,判度的时候,数组越界