摘要: int[] arr=new int[]{5,1,3,4,1}; //若统计的是int数组,先转化为List List<Integer> list= Arrays.stream(arr).boxed().collect(Collectors.toList()); //groupingBy分组 Map< 阅读全文
posted @ 2020-09-15 09:15 灌汤非 阅读(21059) 评论(0) 推荐(0)