为什么重写了equals方法后还需要重写hashCode方法 贴一篇博主的博客,写的很好,有理有据,简单易懂 https://blog.csdn.net/babycan5/article/details/88586821