mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
17 lines
374 B
Java
17 lines
374 B
Java
// "Replace with anyMatch()" "true"
|
|
|
|
public class Main {
|
|
void contains(String[][] haystack, String needle) {
|
|
if(haystack != null) {
|
|
for (String[] row : haysta<caret>ck) {
|
|
if (row == null) continue;
|
|
for (String str : row) {
|
|
if (needle.equals(str))
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
throw new IllegalStateException();
|
|
}
|
|
}
|