JDK8_stream()执行过程

JDK8-stream()执行过程

以下段代码为例

public static void main(String[] args) {
    List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6);
    List<Integer> collect = list.stream().map(i -> i + 1).filter(i -> i % 2 == 0).collect(Collectors.toList());
}

java8-stream执行过程-(1)

posted @ 2023-06-27 18:10  ylc0x01  阅读(12)  评论(0)    收藏  举报