Overriding the java equals() method - not working?

后端 未结 8 1255
花落未央
花落未央 2020-11-22 02:33

I ran into an interesting (and very frustrating) issue with the equals() method today which caused what I thought to be a well tested class to crash and cause a

8条回答
  •  旧时难觅i
    2020-11-22 03:21

    If you use eclipse just go to the top menu

    Source --> Generate equals() and hashCode()

提交回复
热议问题