K I did something like this and all ok now it return the true compare value



public boolean equals(Object o)
{
System.out.println(o instanceof Moof);...