Design and implement a Book class, and then use it with an instance of the Vector class to produce a simple model a school library. Your program should offer the user a menu with the following options.
Loan a Book
Return a Book
List Overdue Books
List all books
Add New Book
On exit, the program should automatically save the entire contents of the library (vector) to a disk file and then read it in when run again. Implement I/O objects of your choice.
Implement Books in the library. They should have title, author, due date, status (in library or on loan) and number of times borrowed. The class should provide methods to loan and return books, to save and load books, as well as a constructor and a toString method. Book titles should be unique.
You will need to search the Vector to find the book with the given title prior to loaning or returning it. You can do this with the .elementAt(i) method. If you have time, try experimenting with the .contains() and .indexOf() methods in the Vector class. To do so, define an equals method in your book class. This should take another book as a parameter and return true if that book's title is the same as the current one, else false.
You can use the Calendar Class to help you with Date utility function to help track start /end dates.