This is a mini Library Management System built using Java and Object-Oriented Programming (OOP) concepts.
It allows managing Books and Users, with features like issuing and returning books.
The project is simple and can be run in VS Code / Terminal.
- Language: Java
- Editor: VS Code
- Execution: Terminal
The project contains the following classes:
- Fields:
id,title,author,isIssued - Methods:
issue()→ Marks book as issuedreturnBook()→ Marks book as availabletoString()→ Shows book details
- Fields:
id,name - Methods:
toString()→ Shows user details
- Stores list of books and users
- Methods:
addBook(Book book)→ Add new bookaddUser(User user)→ Add new usershowBooks()→ Display all booksissueBook(int bookId, int userId)→ Issue a bookreturnBook(int bookId, int userId)→ Return a book
- Contains the menu-driven program
- User can choose from options:
- Show Books
- Issue Book
- Return Book
- Exit
--- Library Management System Menu ---
- Show Books
- Issue Book
- Return Book
- Exit Enter choice: 1
1 - Java Basics by James Gosling [Available]
2 - OOP Concepts by Bjarne Stroustrup [Available]
Enter choice: 2
Enter Book ID: 1
Enter User ID: 1
Ram issued Java Basics
Enter choice: 3
Enter Book ID: 1
Enter User ID: 1
Ram returned Java Basics