A console-based Library Management System developed using Java.
This project helps manage books, users, issuing, returning, searching books, and calculating late return fines.
- β Add new books
- π View all available books
- π€ Add new users
- π Issue books to users
- β©οΈ Return books
- π Search books by Book ID
- π° Automatic fine calculation for late returns
- β Input validation for incorrect entries
- Java
- Java Collections Framework
- HashMap
- Java Time API (
LocalDate,ChronoUnit) - Scanner Class
π Application Workflow
Add books into the library system.
Add users who can borrow books.
Issue books by entering Book ID and User ID.
Return books after borrowing.
If the book is returned after 7 days, a fine is calculated.
π° Fine Calculation
Allowed borrowing period: 7 days
Late fine: βΉ2 per extra day
π§ Concepts Implemented
Object-Oriented Programming (OOP)
Classes and Objects
Encapsulation
Data Structures
HashMap for storing books and users
Exception Handling
Date and Time Handling