救救孩子萌新,想问一下为什么这个max我初始化了他还是显示我没有初始化public class demo05 {public static void main(String[] args) {int[] a = {152, 150, 163, 171, 128, 130, 81, 168};int x, min, max;for (x = 0; x < 8; x++)max = a[0];//把最大值给初始为数组第一个元素{if (a[x] > max) max = a[x];System.out.println(“数组中的最大值为:” + max);}//用循环把最大值和数组中每个元素作比较for (x = 0; x < 8; x++) {min = a[0];if (min > a[x])min=a[x];}//把最小值和数组每个元素作比较System.out.println(“数组中的最小值为:”);