SyntaxFix
Write A Post
Hire A Developer
Questions
It uses the equals method on the objects. So unless Thing overrides equals and uses the variables stored in the objects for comparison, it will not return true on the contains() method.
contains()