Computers and Technology, 02.04.2021 19:30 uaine2002
Library Project: Library. java
In the project, you will develop four classes called Book, Reader, Shelf, and Library. These classes will be used to store, manipulate, and analyze information about the objects stored in a library.
This details the creation of the Library. java class. The UML is listed below.
All the fields have getters and setters.
It is also important to note that the class has neither a hashCode() method nor an equals() method.
Field Details 3
Constant Fields 3
Members 3
String name 3
Static int libraryCard 3
List readers 3
HashMap shelves 3
HashMap books 3
Method Details 4
init(String filename) 4
Library00.csv 5
initBooks(int bookCount, Scanner scan) 6
initShelves(int shelfCount, Scanner scan) 6
initReader(int readerCount, Scanner scan) 7
addbook(Book newBook) 7
returnBook(Reader reader, Book book) 8
returnBook() 8
addBookToShelf(Book book, Shelf shelf) 8
listBooks() 8
checkoutBook(Reader reader, Book book) 9
getBookByISBN(String isbn) 9
listShelves(boolean showbooks) 9
addShelf(String shelfSubject) 10
addShelf(Shelf shelf) 10
getShelf(Integer shelfNumber) 10
getShelf(String subject) 10
listReaders() 10
listReaders(boolean showBooks) 11
getReaderByCard(int cardNumber) 11
addReader(Reader reader) 11
removeReader(Reader reader) 12
convertInt(String recordCountString, Code code) 12
convertDate(String date, Code errorCode) 13
getLibraryCardNumber() 13
errorCode(int codeNumber) 13
UML Diagram of Library. java (Link to full size image) 14
Field Details
Constant Fields
LENDING_LIMIT
This is the maximum number of books someone can check out at a time. Initially set to 5.
Members
String name
The name of the library
Static int libraryCard
The current max library card number
List readers
A list of readers registered to the library
HashMap shelves
A HashMap containing the subject (String) of the shelf and the Shelf object
HashMap books
A HashMap that contains the Book objects registered to the library and the count of those books (Integer)
Answers: 3
Computers and Technology, 22.06.2019 19:40, rakanmadi87
Solve the following javafx application: write a javafx application that analyzes a word. the user would type the word in a text field, and the application provides three buttons for the following: - one button, when clicked, displays the length of the word.- another button, when clicked, displays the number of vowels in the word.- another button, when clicked, displays the number of uppercase letters in the word(use the gridpane or hbox and vbox to organize the gui controls).
Answers: 1
Computers and Technology, 23.06.2019 14:30, ladawnrowles005
The option enables you to modify a slide element in most presentation applications.
Answers: 2
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
Library Project: Library. java
In the project, you will develop four classes called Book, Reader, S...
Mathematics, 20.09.2020 06:01
Mathematics, 20.09.2020 06:01
Mathematics, 20.09.2020 06:01
Computers and Technology, 20.09.2020 06:01
Geography, 20.09.2020 06:01