mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-02 03:07:47 +07:00
22 lines
481 B
Java
22 lines
481 B
Java
// "Replace with findFirst()" "true"
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Main {
|
|
public void testMap(Map<String, List<String>> map) throws Exception {
|
|
String firstStr = "";
|
|
OUTER:
|
|
for(List<String> list : map.valu<caret>es()) {
|
|
if(list != null) {
|
|
for(String str : list) {
|
|
if(!str.isEmpty()) {
|
|
firstStr = str;
|
|
break OUTER;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
System.out.println(firstStr);
|
|
}
|
|
} |