Create an application with an array


Discuss the below:

Q1: Create a class titled SchoolTextBook that contains fields for the author, title, page count, ISBN, and price. This SchoolTextBook class will also provide setter and getter methods for all fields. Save this class in a file titled SchoolTextBook.java.

Q2: Write an application with an array that holds 5 instances of the SchoolTextBook class, filled without prompting the user for input. Next prompt the used to enter a field for sorting, sort the array of objects based on the user input, and then display the newly sorted array of objects. Save this class in a file titled SchoolTextBookSort.java.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create an application with an array
Reference No:- TGS01934316

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)