mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
11 lines
222 B
Java
11 lines
222 B
Java
// "Replace with forEach" "true"
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
class Sample {
|
|
List<String> foo = new ArrayList<>();
|
|
{
|
|
foo.stream().filter(s -> s != null).forEach(System.out::println);
|
|
}
|
|
}
|