invoke the java contains equals method , equals equals method of the container themselves do ? If the container has no equals method , it is necessary to write their own , are not you ? , Write your own this is not replicated it !
------ Solution ---------------------------------------- ----
is the object that you want contains equals method
------ Solution ----------------------- ---------------------
upstairs positive solution, if the object does not override the equals method , then call the parent class inherits the equals method
没有评论:
发表评论