mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 13:50:53 +07:00
16 lines
425 B
Java
16 lines
425 B
Java
// "Replace Stream API chain with loop" "true-preview"
|
|
|
|
import java.util.Objects;
|
|
import java.util.stream.Stream;
|
|
|
|
public class Main {
|
|
public void test(String... list) {
|
|
Runnable s = () -> Stream.of(list)
|
|
.filter(Objects::nonNull).for<caret>Each(System.out::println);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new Main().test("a", "bbb", null, "cc", "dd", "eedasfasdfs");
|
|
}
|
|
}
|