X1029: Loop Idioms - Find First 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 first with an ISBN number matching the parameter.

All books on a Shelf are represented by the List called books. If no book matches the given ISBN, this method should return null.

As Remember that a Book provides a getter method called getISBN().

Your Answer:

Feedback

Your feedback will appear here when you check your answer.