mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
18 lines
359 B
Java
18 lines
359 B
Java
// "Replace Stream API chain with loop" "true"
|
|
|
|
import java.util.Arrays;
|
|
import java.util.Objects;
|
|
|
|
public class Main {
|
|
boolean test(String[] strings) {
|
|
for (String s : strings) {
|
|
if (Objects.nonNull(s)) {
|
|
if (!s.startsWith("xyz")) {
|
|
return true;
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
}
|