当需要创建某一对象集合时,equals 方法被覆盖过,则 hashCode 方法才必须被覆盖 new HashSet<Student>();//Student重写了equals时hashCode必须重写