PhoneSearch Week 9, Exercise 26 "Adding address"

26 views
Skip to first unread message

josh...@gmail.com

unread,
Oct 17, 2016, 2:44:50 PM10/17/16
to mooc.fi
Hi,

I'm having problems with week 9 exercise 26  of  Java OOP Part 2 .

I'm currently having issues adding an address to a Person object. I currently have a HashMap holding the Person object as a key, and a HashSet to hold phone numbers. I'm getting a concurrent modification exception when I have more than one Person key in my HashMap.  I'm also having problems creating a new Person object when I attempt to add an address to a Person that does not exist in my HashMap.  Any hints would be much appreciated.


Best regards,
Josh
Reply all
Reply to author
Forward
0 new messages