/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package lab2stuff; /** * * @author jcmt */ public class Book { //ex. ISBN Deitel Java 9th 978-0-13-257566-9 //ex. ISBN BlueJ 978-0-13-249266-9 //ex. ISBN To Kill a Mbird 978-0-44-631078-9 //ex. ISBN Qatar pub 99921-58-10-7 //ex. ISBN You can' (Japan)978-4-04-427101-5 private String iSBN = new String(); //include dashes private String title = new String(); private String author = new String(); //last, first private float price; private int pubYr; private boolean checkedOut; LibraryDate dueDate = new LibraryDate(); LibraryDate current = new LibraryDate(); //current.compareDates(dueDate); /** * getiSBN gives the book's ISBN number * @return String value of the ISBN * */ public String getiSBN() { return iSBN; } public void setiSBN(String iSBN) { this.iSBN = iSBN; } public void setDueDate(LibraryDate dueDate) { this.dueDate = dueDate; } public void setCheckedOut(boolean checkedOut) { this.checkedOut = checkedOut; } @Override public String toString() { return String.format("Title %s, Author %s, ISBN %s\n", title, author, iSBN); } }