mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
18 lines
428 B
Java
18 lines
428 B
Java
// "Replace with toArray" "true"
|
|
|
|
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(list.size());
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
return result.toArray(new Integer[result.size()]);
|
|
}
|
|
} |