int[] arr = new int[5];int max,sum,temp;Random r = new Random();for(int i =0;i<arr.length;i++){ temp = r.nextInt(100);//100以内 arr[i] = temp;max = max>temp?max:temp;sum+=temp;} System.out.println("max:"+max);System.out.println("sum:"+sum)...