Question: Create a Library class with a method searchBook ( String bookTitle ) . Inside the method, define a local inner class Book with attributes like
Create a Library class with a method searchBookString bookTitle Inside the method, define a local inner class Book with attributes like title, author,and publication year. Demonstrate how to use the local inner class to search for a book by title.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
