you need to override equals and hashcode methods.
On Mon, Dec 5, 2011 at 12:23 PM, pa7751 wrote:
> Hi
>
> I have a Person Object that has members: firstname, lastname and DOB
> public class Person {
>private String firstName;
>private String lastName;
>private Date dob;
>
>/** Co
Hi
I have a Person Object that has members: firstname, lastname and DOB
public class Person {
private String firstName;
private String lastName;
private Date dob;
/** Construct a Person given the first name, last name, and birth
date. */
public Person(String firstName, String lastN
Hi
I have a Person Object that has members: firstname, lastname and DOB
public class Person {
private String firstName;
private String lastName;
private Date dob;
/** Construct a Person given the first name, last name, and birth
date. */
public Person(String firstName, String