Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 928 Bytes

README.md

File metadata and controls

42 lines (29 loc) · 928 Bytes

Library Management System

A console app in Java manages a library's books, users and loans. It needs no database: it saves records to files with Java serialization.

Features

  • Manage books. Add, delete and search books, and update stock.
  • Register users.
  • Issue and return books. Stock goes down on issue and back up on return.
  • List all books with author, ID, price and quantity.

How data is saved

Records are kept in ArrayLists while the app runs. They are written to three files and read back on the next start:

File Holds
books.ser Books
users.ser Users
issued_books.ser Issued books

Run

You need Java 17 and Maven.

mvn package
java -jar target/library-management-system-1.0-SNAPSHOT.jar

Or compile and run without Maven:

javac -d out src/Main.java
java -cp out Main

Stack

Java 17 · Maven · Java serialization