摘要:
Collectors 与集合转换 Collectors toList streamArr.collect(Collectors.toList()); List<Integer> collectList = Stream.of(1, 2, 3, 4) .collect(Collectors.toLis 阅读全文
posted @ 2021-06-25 16:16
satire
阅读(1070)
评论(0)
推荐(0)
摘要:
基于下面一段代码: public static void main(String[] args) { List<String> list = Arrays.asList("123", "123123"); list.stream().map(item -> item+"").forEach(Syst 阅读全文
posted @ 2021-06-25 10:31
satire
阅读(846)
评论(0)
推荐(0)