In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "how to use JAVA to achieve the library management system project", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "how to use JAVA to achieve the library management system project"!
Project requirements design premise
Master the basic syntax of java
Familiar with process control
Understand object-oriented thought
Skillful encapsulation, inheritance, polymorphism
Familiar with using interfaces, exceptions
Familiar with working with collections
Be familiar with the operations related to Icano stream
Design goal
For a long time, the school needs to set up volunteers to borrow and organize books in the library, which is relatively troublesome, so it is necessary to design a good library management system, but what we have to do this time is definitely not a finished product, but a simple design. Through the input and output of the IO stream, we can write and write data, add, delete, modify and check books and users. So that we can play with all the books in our hands.
Design structure diagram
Functional interpretation
Reader information management: including reader information addition and reader information query and modification functions. After logging in successfully, users can browse the information of all readers or retrieve the information of specific readers; at the same time, the information of readers can be maintained, including adding, deleting and modifying.
Book information management: including book information addition and book information query and modification functions. After logging in successfully, users can browse all the book information and retrieve the information of specific books; they can also maintain the book information. Including adding books, deleting books and modifying book information book lending management: including book lending and book return functions.
The book lending function, first enter the reader's number, and then enter the information of the book to be borrowed, and record the current time of the system, that is, the borrowing time; the book return function, enter the reader's number and select the borrowed book under its name. judge whether the difference between the current date, that is, the return date and the borrowing date exceeds the prescribed time limit, calculate the fine, so as to carry out the return operation of the book.
Basic information maintenance: including book category setting, reader category setting and fine setting. Book category settings, you can add, delete, modify and query the categories of books; reader category settings can add, delete, modify and query the categories of readers; fine settings, you can specify the penalty standard of one day overdue.
User management: including password modification, user addition and deletion. Changing the password means that the current user modifies his own password; the addition and deletion of users is the maintenance of user information when adding and removing system users.
The project implements the setting of basic objects
The first thing to achieve is the establishment of various modules, such as books, book categories, users, user categories, table borrowers, several large objects.
BookType
/ * * Book type number, book type name * * / private int typeid; private String name
BOOK
/ * * Book entity: book number ISBN, book name, author, publisher, publication date, quantity, unit price, book type * * / private int bookId; private String bookName; private String author; private String publish; private Date publishDate = new Date (); private int count; private int price
ReaderType
/ * * Reader type: reader type number, reader type name, number of days available for borrowing, number of available borrowers * * / private int typeid; private String Tupeidname; private int limit; private int maxborrownum
Reader
/ * * Reader entity: reader number, reader name, date of birth, gender, telephone, department, registration date, reader category * * / private int readerid; private String name; private Birthday birthday = new Birthday (); private String sex; private String phone; private String dept; private Date date = new Date (); private ReaderType theReaderType = new ReaderType (); write through IO stream
Add
Find
First read the data into the collection by the way of collection, and then read the data together when you exit, so as to improve the efficiency. You can also use the data to write step by step, so that although the update of the data will be more timely, but the running efficiency will be reduced, it is not recommended to write this way.
At this point, I believe you have a deeper understanding of "how to use JAVA to achieve the library management system project". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.