mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-03 11:47:50 +07:00
18 lines
430 B
Java
18 lines
430 B
Java
// "Replace with toArray" "false"
|
|
|
|
import java.util.*;
|
|
|
|
public class Main {
|
|
public Integer[] testNestedAnyMatch(List<List<String>> data) {
|
|
List<Integer> result = new ArrayList<>();
|
|
for (List<String> list : d<caret>ata) {
|
|
for (String str : list) {
|
|
if (!str.isEmpty()) {
|
|
result.add(str.length());
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return result.toArray(new Integer[result.size()]);
|
|
}
|
|
} |