接下来的例子我们会用上面的两个list来讲解Collectors的用法。 ... Long countResult = list.stream().collect(Collectors.counting()); log.info("{}",countResult); ...
確定! 回上一頁