Question: II. (25 pts.) Consider the main method in the LibraryTest class below for testing the Book class on this page and the Library class on

 II. (25 pts.) Consider the main method in the LibraryTest classbelow for testing the Book class on this page and the Libraryclass on the next page. Complete the Library class so that themain method of LibraryTest will print out: The UTSA Library collection includes:

II. (25 pts.) Consider the main method in the LibraryTest class below for testing the Book class on this page and the Library class on the next page. Complete the Library class so that the main method of LibraryTest will print out: The UTSA Library collection includes: (1) "Effective Java" by Joshua Bloch (2) "Sherlock Holmes by Arthur Conan Doyle Sherlock Holmes is available. Sherlock Holmes is not available. All methods called in the main method must be implemented. public class LibraryTest( public static void main( String[] args) Library lib new Library ( "UTSA Library" ); Book book1 = new Book ("Effective Java", "Joshua Bloch"); Book book2 = new Book ("Sherlock Holmes", "Arthur Conan Doyle"); lib.addBook( bookl lib.addBook book2 Book book3 new Book ("Sherlock Holmes", Arthur Conan Doyle"); boolean onShelflib.isAvailable book3 System.out.println lib ); System.out.println "\"book3.getName+ "\"" +(onShelf? iis not")+ * available lib.checkOut( book3 onshelf = lib.isAvailable( book2 ); System.out.println "\"book3.getName +""" + (onshelf ? "is" "is not") + " available

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!