X1030: Loop Idioms - Find Last Book

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 Books 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 Answer:

Feedback

Your feedback will appear here when you check your answer.