java mapobject object 怎么添加元素

2025-05-14 20:44:57
推荐回答(1个)
回答1:

Map test=new HashMap();
test.put(1, 1);
test.put("1", 2);