Write a java class Library for implementing a library application which accepts books into its list and user should be able to search books based on a book title or the Author. The books should be...


I need to create a java program without using any java tools, just the java scanner.


Write a java class Library for implementing a library application which accepts<br>books into its list and user should be able to search books based on a book title<br>or the Author. The books should be added to an ArrayList. Write the Main class<br>with main function in it to display a menu to opt whether to add books, list books<br>and search books. Use a constructor of Library class to add books. Use a method<br>named searchTitle and searchAuthor in Library class to search the books.<br>1) Define class Library with required instance variable ArrayList for adding books<br>2) The Library class should have one constructor and three methods to do the<br>below functions<br>The Constructor needs to add books<br>Method displayBook to List all the books in the library.<br>Method named search Title to search books based on book title, this method<br>should be able to accept a user string and search if a book with the title is in the<br>added book list<br>Method named searchAuthor to search books based on book title, this method<br>should be able to accept an Author name and list all books by the Author<br>

Extracted text: Write a java class Library for implementing a library application which accepts books into its list and user should be able to search books based on a book title or the Author. The books should be added to an ArrayList. Write the Main class with main function in it to display a menu to opt whether to add books, list books and search books. Use a constructor of Library class to add books. Use a method named searchTitle and searchAuthor in Library class to search the books. 1) Define class Library with required instance variable ArrayList for adding books 2) The Library class should have one constructor and three methods to do the below functions The Constructor needs to add books Method displayBook to List all the books in the library. Method named search Title to search books based on book title, this method should be able to accept a user string and search if a book with the title is in the added book list Method named searchAuthor to search books based on book title, this method should be able to accept an Author name and list all books by the Author

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here