posted 18 years ago
The code as posted seems to work fine, output is a unique set of elements.
However if I replace the Statement B equals method with the commented out Statement A equals method I get a stack overflow error. I can see that the commented out equals method is not a proper override but don't understand why it causes a stack overflow. Can anyone explain?
Thanks in advance,
Tom