Question: Create a class named LibraryBook that contains fields to hold methods for setting and getting a LibraryBook's title, author, and page count. Save the file
Create a class named LibraryBook that contains fields to hold methods for setting and getting a LibraryBook's title, author, and page count. Save the file as LibraryBook. java. Write an application that instantiates five LibraryBook objects and prompts the user for values for the data fields. Then prompt the user to enter which field the LibraryBooks should be sorted by (title, author, or page count). Perform the requested sort procedure, and display the LibraryBook objects. Save the file as LibraryBookSort. java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
