Map<String, Object> newMap = map.entrySet().stream()
.collect(Collectors.toMap(m -> "$" + m.getKey(), Map.Entry::getValue));```
批量更改hashmap key的值
最新推荐文章于 2023-09-07 18:22:27 发布
Map<String, Object> newMap = map.entrySet().stream()
.collect(Collectors.toMap(m -> "$" + m.getKey(), Map.Entry::getValue));```