Anyone know the answer to this question? studying for an exam atm and it looks like this is coming up.
b) Amend the Person class so the code snippet below will work properly
ArrayList<Person> people = new ArrayList<Person>();
//Assume Person objects have been added to the list
if (people.contains(new Person("Adam Ant", 48)))
{
//Do something
}
else
{
//Do something else
}