测试重复的Hashcode
String a="Aa";
String b="BB";
System.out.println(a.hashCode());
System.out.println(b.hashCode());
Hashtable<String,String> map=new Hashtable<String,String>();
map.put(a,"test");
map.put(a,"test");
System.out.println(map.size());
System.out.println(map.get(a));
System.out.println(map.get(b));
String b="BB";
System.out.println(a.hashCode());
System.out.println(b.hashCode());
Hashtable<String,String> map=new Hashtable<String,String>();
map.put(a,"test");
map.put(a,"test");
System.out.println(map.size());
System.out.println(map.get(a));
System.out.println(map.get(b));