As others say, the signature of the method you redefine must be exactly the same. When overriding methods, to make sure that you override, use the note @Overrideabove the function, so IDEs such as Eclipse will warn you if you change the method.
Here's what it looks like:
@Override
public boolean equals(Object obj){
...Your code here...
}
hashCode(), , , hastables .. ( performande) hashCode() ( equals() !)
, :
@Override
public boolean equals(Object obj){
...Your code here...
}
@Override
public int hashCode(){
...Your code here...
}
javadoc