自定义类型做key值。必须要重写hashCode和equals方法
创建pserson类 有name个age两个成员变量。重写toString方法
key有重复,会被新的value值替换掉。
key值北京是重复的
赵六替换掉了张三,因为Sting重写了HashCode方法,可以保证我们的key值不允许重复。
key使用Person自定义类型
没有重写,并不能保证唯一
next---next---finish
重写完之后。