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