Question: please help with this book class. the toString() method returns a textual representation of the format: Book#10007::Design Patterns::7/20/1996::is available and equals() method returns true if
please help with this book class.
the toString() method returns a textual representation of the format:
Book#10007::Design Patterns::7/20/1996::is available
and equals() method returns true if the serial numbers for the 2 book objs are the same
public class Book { private String number; //a 5 digit serial number unique to the book private String name; private boolean checkedOut; private Date datePublished; ... @override public boolean equals(object obj){} @override public string toString(){} can't remove override tags, the book number starts at 10001, not allowed to use any java classes besides scanner, stringtokenizer and calender. can add constructors/helper method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
