class A <K,V> extends abstractMap<K,V>{
LinkedList<Map.Entry<K,V>> m = new LinkedList<Map.Entry<K,V>>[100];
public V get(Object key){
int i = Math.abs(key.hashCode())%100;
if(me[i] == null)
return null;
for(Map.Entry<K,V> me : m[i]){
if(me.getKey().equals(key))
return me.getValue();
}
return null;
这里泛型被当做Object,那为什么两个Object可以正确的比较?书上说Object的equals比较的是地址,那结果应该永远是false才对啊