Welcome to the Ranch
Please quote a little more of the parts you are worried about. Also please give more details about the book, e.g. author, so those who have the book can look up the pages for themselves. Thank you for providing the page numbers, which is very helpful for anybody who recognises the book (

). I don't have a copy myself.
It is customary when discussing association, inheritance, aggregation, and composition to say things like
A taxi IS-A car.
A car HAS-A driver.
A car HAS-A registration number.
A car HAS[-A] wheel[s].
A car HAS[-A] passenger[s].
Now, the driver and the passenger might be instances of the Person class, so you don't usually say A car HAS-A person, and if the registration number is implemented as a
String, you would not usually say a car HAS-A String, so I think I would probably agree with the first solution given.
Please show us the code where the Scanner isn't imported properly, and how that Exception is instantiated.