Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The Book and JsonBookParser classes are the instantiable classes in this program. These are written for you - you do not need to make any

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:
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.
Prompt the user for an isbn number. Store this number in a "long" variable.
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.
Create a Book object. The same two options for creating a Book object apply here as well.
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.
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

Database Marketing The New Profit Frontier

Authors: Ed Burnett

1st Edition

0964535629, 978-0964535626

More Books

Students also viewed these Databases questions

Question

1. Who should participate and how will participants be recruited?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago

Question

How would you assess the value of an approach like this?

Answered: 1 week ago