mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 20:39:40 +07:00
21 lines
463 B
Java
21 lines
463 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 = () -> {
|
|
for (String string : list) {
|
|
if (string != null) {
|
|
System.out.println(string);
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new Main().test("a", "bbb", null, "cc", "dd", "eedasfasdfs");
|
|
}
|
|
}
|