有没有办法将多个键指向相同的值?
IE
HashMap<String, Float> mymap = new HashMap<>();
mymap.put("hello",5f);
mymap.put("bye",5f);
~somehow point bye and hello to the same value~
mymap.put("bye", mymap.get("bye") +5f)
mymap.get("hello") == 10
慕村225694
慕侠2389804
斯蒂芬大帝
相关分类