|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
K I did something like this and all ok now it return the true compare value
Code:
public boolean equals(Object o)
{
System.out.println(o instanceof Moof);
System.out.println(((Moof)o).getMoofValue());
System.out.println(this.moofValue); //XXX
if ((o instanceof Moof) && (((Moof)o).getMoofValue() == this.moofValue))
{
return true;
}
else
{
return false;
}
Last edited by tking88; 10-24-2009 at 03:38 PM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|