mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
19 lines
414 B
Java
19 lines
414 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public static boolean find(List<List<String>> list) {
|
|
for(List<String> innerList : li<caret>st) {
|
|
for(String string : innerList) {
|
|
if(string.startsWith("ABC")) {
|
|
return string.substring(3).equals("xyz");
|
|
/*
|
|
Block comment
|
|
*/
|
|
}
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
} |