mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 03:37:58 +07:00
18 lines
399 B
Java
18 lines
399 B
Java
// "Replace with anyMatch()" "false"
|
|
|
|
public class Main {
|
|
String 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 "yes"+str;
|
|
}
|
|
}
|
|
System.out.println("oops");
|
|
}
|
|
return "no";
|
|
}
|
|
}
|