Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Hash Map 中有三个对象,我们如何在一条语句中访问这些对象?
例如:
Map map=new HashMap(); map.put(1,"one"); map.put(2,"two"); map.put(3,"three");`
调用 map.values() ,您将获得 3 个对象的集合