Created
June 29, 2018 11:03
-
-
Save c0rp-aubakirov/7f84579502fc414e453f7843db18d9d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StreamTest { | |
@Test | |
public static void test () { | |
final List<Integer> list = new ArrayList<>(); | |
list.add(1); | |
list.add(2); | |
list.add(3); | |
final Stream<Integer> stream = list.stream().filter(a -> a > 2); | |
list.add(4); | |
stream.forEach(System.out::print); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Результат