The question is about collections interface.
From the Complete Reference Java book
How can a collection be compared to an object? If, I am not wrong collection consists of objects. So how can a collection of objects be compared to a single object. Is there a printing error in the book or am I missing something?Quote:
boolean equals(Object obj): Returns true if the invoking collection and obj are equal. Otherwise returns false