paulyip <(E-Mail Removed)> wrote:
> I've create a private class and an arrayList of it. I found that I can't us
> indexOf the check whether they are the same. Is it true that they are in
> different location in the memory, that I have use a for loop to compare the
> value of them (i.e. add an method CompareVenueID() in class and loop it in
> in main())?
Either that or override object.Equals(object) - that's what IndexOf
uses to test for equality.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too