//******************************************************************** // Book.java Author: Lewis and Loftus // // Represents a single book. //******************************************************************* public class Book { private String title; //---------------------------------------------------------------- // Sets up the new book with its title. //---------------------------------------------------------------- public Book (String newTitle) { title = newTitle; } //---------------------------------------------------------------- // Returns this book as a string. //---------------------------------------------------------------- public String toString () { return title; } }