mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
19 lines
339 B
Java
19 lines
339 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public void test(List<Integer> list) {
|
|
boolean x = false;
|
|
for (Integer i : list) {
|
|
if (i <= 2) {
|
|
x = true;
|
|
break;
|
|
}
|
|
}
|
|
if(x) {
|
|
System.out.println("found");
|
|
}
|
|
}
|
|
}
|