Question: in java 2. Create a book inyentory system. Youli need a book class and an author class (see attached class diagrams for private data and
2. Create a book inyentory system. Youli need a book class and an author class (see attached class diagrams for private data and methods). The main should have an arroylist where you will store a minimum of three books (minimum of two authors). You can get the data from the user, or you can hardcode it. Display your "inventory" in a readable way. Bonus: Let your book class implement the Comparator interface so that you can sort the books. Youll need to implement the compareTo method 2. Create a book inyentory system. Youli need a book class and an author class (see attached class diagrams for private data and methods). The main should have an arroylist where you will store a minimum of three books (minimum of two authors). You can get the data from the user, or you can hardcode it. Display your "inventory" in a readable way. Bonus: Let your book class implement the Comparator interface so that you can sort the books. Youll need to implement the compareTo method
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
