🎨 update

This commit is contained in:
fuhouyin 2024-03-20 14:34:28 +08:00
parent 56551727c2
commit c322783350

View File

@ -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));
```