For this question, you will be using the Book
and Shelf
classes described in the reading assignment.
Implement the following method so...
For this question, you will be using the Book
and Shelf
classes described
in the reading assignment.
Implement the following method so that it will search through
all the Book
s on the given shelf and return the last Book
with the given title
.
All books on a Shelf
are represented by the List
called books
.
If no book matches the given title, this method should return null
.
Remember that a Book
provides a getter method called getTitle()
.
Also, when comparing Strings, you must use the .equals()
.
method, not ==
!
Your feedback will appear here when you check your answer.