Say I create one object and add it to my ArrayList. If I then create another object with exactly the same constructor input, will the contains() me
ArrayList
contains()
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.