1.排序 2.Collections.max()和Collections.min() 3.Arrays.stream(arr).max.getAsInt()和Arrays.stream(arr).min().getAsInt()