如何替换LinkedHashMap中特定键中的值
2022-09-03 04:20:44
我想替换LinkedHashMap中特定键的值。
例如初始条件..
"key1" -> "value1"
"key2" -> "value2"
"key3" -> "value3"
"key4" -> "value4"
"key5" -> "value5"
我想要预期的结果...
"key1" -> "value1"
"key2" -> "value8"
"key3" -> "value3"
"key4" -> "value6"
"key5" -> "value5"