mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-18 10:36:54 +07:00
18 lines
374 B
Java
18 lines
374 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
private static void test(List<String> list) {
|
|
for (String x : list) {
|
|
if (x != null) {
|
|
System.out.println(x);
|
|
}
|
|
}
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
test(Arrays.asList("a", "b", "xyz"));
|
|
}
|
|
} |