Company: paypal_17may
Difficulty: medium
Implement the Library structure using the following class. 1. Library class with the following properties Attributes private integer attribute number_of_books private string attribute name (library name) private Map<String, Integer> bookGenres , map of genres to book count Public getter and setter methods ----- Getter---- int getNumber_of_books() method string getName() method Map<String, Integer> getBookGenres() method ----- Setter ------ void setNumber_of_books(int number_of_books) method void setName(string name) method void setBookGenres(Map<String, Integer> bookGenres) method Note: The code stub receives input and passes it to the methods. Input Format For Custom Testing The first line contains an integer, n, that denotes the number of library instances to be initiated. Each of the n instances of libraries contains lines in the following format: NAME NUMBER_OF_BOOKS BOOK_GENRES_COUNT Each of the subsequent BOOK_GENRES_COUNT lines contains BOOK_GENRE COUNT Sample