标签:for entryset str 遍历 set try nec ring connect
1:使用map.keySet()
Set
for( String key : set ){
String value = map.get(key);
}
2:使用map.entrySet()
Set<Map.Entry<String, String>> set = map.entrySet();
for( Map.Entry<String, String> entryset : set ){
String key = entry.getKey();
String value = entry.getValue();
}
3:使用map.values()
Connection
for( String _value : c){
String value = value;
}
标签:for entryset str 遍历 set try nec ring connect
原文地址:https://www.cnblogs.com/gang-188/p/12034581.html