最大值(整数数组):
Arrays.stream(A).max().getAsInt()
int[] A = {6,7,8,2,1,3,4,5};
int maxVal = Arrays.stream(A).max().getAsInt();
最小值(整数数组):
Arrays.stream(A).min().getAsInt()
int[] A = {6,7,8,2,1,3,4 ...
最大值(整数数组):
Arrays.stream(A).max().getAsInt()
int[] A = {6,7,8,2,1,3,4,5};
int maxVal = Arrays.stream(A).max().getAsInt();
最小值(整数数组):
Arrays.stream(A).min().getAsInt()
int[] A = {6,7,8,2,1,3,4 ...