mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 19:58:23 +07:00
16 lines
384 B
Java
16 lines
384 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.List;
|
|
|
|
public class Main {
|
|
public static String 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") ? string.trim() : null;
|
|
}
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
} |