/** * Book class for each book in the catalogue. * * Student name - Shane Donohoe * Student ID - 06009979 * Date - 9th April 2007 */public class Book{ private String description; private int borrower; /** * Constructor for objects of class Book */ public Book(String descriptionEntry) { description=descriptionEntry; borrower=0; } public void searchDescription(String bookDescriptionSearchEntry) { if (description.contains(bookDescriptionSearchEntry)) { System.out.println("Book description: " + description); } } public void searchBorrower(int borrowerSearchEntry) { if (borrower == borrowerSearchEntry) { System.out.println(description + " is currently on loan to borrower " + borrower); } } public void setBorrower(int borrowerSetEntry) { borrower = borrowerSetEntry; }}