it should be:


aHouse.getPerson().equals("Y")


if getPerson() returns a String you do not need to call toString().

also your first call to aHouse.getPerson() seems pointless to me, as you...