Question: Exercise 1 Library Tracking System In this assignment you will implement a library book tracking system. In order to keep track of all books, the



Exercise 1 Library Tracking System In this assignment you will implement a library book tracking system. In order to keep track of all books, the library needs an application that stores books efficiently. These books will be stored in a binary search tree. Each book must be comparable to another book. Example Insertion of various books with different ISBN wll result in the following IBSN-sorted Binary Search Tree: ISBN: 199 ISBN: 73 ISBN: 231 ISBN: 20 ISBN: 164 ISBN: 410 ISBN: 293 ISBN: 502 Implement the following classes: Book.java: A book must have an author, title, and ISBN. Provide getters and setters for eaclh property. Override the toString0 method. Also, override boolean equals (Object o) which compares the current object (this) to the argument o and returns true if both are the same. Hint: Use instanceof to check the class type of o and cast if o is an instance of Book. NK Exercise 1 Library Tracking System In this assignment you will implement a library book tracking system. In order to keep track of all books, the library needs an application that stores books efficiently. These books will be stored in a binary search tree. Each book must be comparable to another book. Example Insertion of various books with different ISBN wll result in the following IBSN-sorted Binary Search Tree: ISBN: 199 ISBN: 73 ISBN: 231 ISBN: 20 ISBN: 164 ISBN: 410 ISBN: 293 ISBN: 502 Implement the following classes: Book.java: A book must have an author, title, and ISBN. Provide getters and setters for eaclh property. Override the toString0 method. Also, override boolean equals (Object o) which compares the current object (this) to the argument o and returns true if both are the same. Hint: Use instanceof to check the class type of o and cast if o is an instance of Book. NK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
