- 博客(2)
- 收藏
- 关注
原创 lambda快速找到一个数组中重复的数
int[] arr = {1,2,3,3,3,4,5,6,6,6,7,5,10}; Map<Integer,Long> map = IntStream.of(arr).boxed().collect(Collectors.groupingBy(Function.identity(),Collectors.counting())); List<Integer> list = new ArrayList<>(); map.keySet().stream().forEa.
2021-10-20 14:34:49 691
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人