🎨 update
This commit is contained in:
parent
56551727c2
commit
c322783350
@ -38,4 +38,9 @@
|
||||
for (String v : map.values()) {
|
||||
System.out.println("value= " + v);
|
||||
}
|
||||
```
|
||||
```java
|
||||
//第五种
|
||||
System.out.println("通过lamda表达式遍历key和value:");
|
||||
map.forEach((k, v) -> System.out.println("key = " + k + ", value = " + v));
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user