java集合框架 map 如何创建一个新对象
操作方法
- 01
接口 Map<K,V>所有已知子接口:ConcurrentMap<K,V>, SortedMap<K,V>所有已知实现类:AbstractMap, Attributes, AuthProvider, ConcurrentHashMap, EnumMap, HashMap, Hashtable, IdentityHashMap, LinkedHashMap, PrinterStateReasons, Properties, Provider, RenderingHints, TabularDataSupport, TreeMap, UIDefaults, WeakHashMap 举个例子 Map<K,V> map = new HashMap<K,V>(); K为键的类型 V为值的类型、
赞 (0)