摘要:
class Animal { } class Dog extends Animal { } class Cat extends Animal { } //泛型如果明确的写的时候,前后必须一致 Colletion<Object> c1 = new ArrayList<Object>(); Collet 阅读全文
摘要:
1、存储结构 private static class Entry<K,V> implements Map.Entry<K,V> { final int hash; final K key; V value; Entry<K,V> next; protected Entry(int hash, K 阅读全文