Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Open the three Java files: BookIsbnLookup.java, Book.java, and JsonBookParser.java. The Book and JsonBookParser classes are the instantiable classes in this program. These are written for

Open the three Java files: BookIsbnLookup.java, Book.java, and JsonBookParser.java. The Book and JsonBookParser classes are the instantiable classes in this program. These are written for you - you do not need to make any changes. Your task is to complete the main class (BookIsbnLookup). I have written comments here for the steps you need to take. They are:

  1. Welcome the user and tell him/her that if he/she has a book isbn number, the program can tell him/her the title and description.
  2. Prompt the user for an isbn number. Store this number in a "long" variable.
  3. Create a JsonBookParser object. You can do this one of two ways:
    • Call the default constructor and then call the setIsbn method.
    • Call the constructor that takes in the isbn number.
  4. Create a Book object. The same two options for creating a Book object apply here as well.
  5. Using your JsonBookParser object, call the getTitle and getDescription methods to get the book's title and description. Store these values in your book object by calling the setTitle and setDescription methods.
  6. Output the results by printing your Book object to the console. The Book class contains a toString method, you just print your object directly to the console
    • Call the constructor that takes in the isbn number.
  1. Create a Book object. The same two options for creating a Book object apply here as well.
  2. Using your JsonBookParser object, call the getTitle and getDescription methods to get the book's title and description. Store these values in your book object by calling the setTitle and setDescription methods.
  3. Output the results by printing your Book object to the console. The Book class contains a toString method, you just print your object directly to the console.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

6th Edition

1943153035, 978-1943153039

Students also viewed these Databases questions