mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
18 lines
376 B
Java
18 lines
376 B
Java
// "Replace with count()" "true"
|
|
import java.util.List;
|
|
import java.util.Set;
|
|
|
|
public class Main {
|
|
public void test(List<Set<String>> nested) {
|
|
int count = 0;
|
|
for(Set<String> element : neste<caret>d) {
|
|
if(element != null) {
|
|
for(String str : element) {
|
|
if(str.startsWith("xyz")) {
|
|
++count;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |