Answered step by step
Verified Expert Solution
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 himher that if heshe has a book isbn number, the program can tell himher 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started