Java 8 Stream使用If-else逻辑

在stream找那个传统的if else用法java List<Integer> ints = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); ints.stream() .forEach(i -> { if (i.intValue() % 2 == 0) { Assert.assertTrue(i.i
相关文章
相关标签/搜索