Count int occurrences with Java8

后端 未结 6 930
北恋
北恋 2020-11-27 06:12

Is there a better way to count int occurrences with Java8

int[] monthCounter = new int[12];
persons.stream().forEach(person -> monthCounter[person.getBirt         


        
6条回答
提交回复
热议问题