Hi Ben,
You ask how to override the equals method.
Your job is to implement an equals method,
public boolean equals(Object theOtherObject)
which will return true if the two objects are equal and false if not.
About how to do it - do you know what types of objects you'll
have in your list?
For example: Objects called "Numbers" which has a instance member
called "value" - in that case you might decide to say that two
numbers a and b are equals if they have the same value.
If you don't know what kinds of objects you'll get you can only
return true if the objects are the same.
Now - I intentionally didn't supply some code as I didn't wan't to
ruin your fun
If you still have problems with the equals method, then reply and I'll
give another hint or a few lines of code.
/Svend Rost
[ September 23, 2004: Message edited by: Svend Rost ]