In playing with lesson 8 in scrapebook, I enter this and inspect:
Book b2 = new Book("War and Peace");
Person p2 = new Person();
p2.setName("Elvis");
b2.setPerson(p2);
//
Person testPerson = b2.getPerson();
// String testName = testPerson.getName();
testPerson
In playing with lesson 8 in scrapebook, I enter this and inspect:
Book b2 = new Book("War and Peace");
Person p2 = new Person();
p2.setName("Elvis");
b2.setPerson(p2);
//
Person testPerson = b2.getPerson();
// String testName = testPerson.getName();
testPerson
I get this output:
https://www.dropbox.com/s/lg8jtu3skwvju2q/Screenshot%202016-01-16%2007.36.50.png?dl=0
Where is "Elvis (3 books)" comming from? Looks like output from toString() from earlier lesson.