GitHunt
AV

avinash09-cmd/Library-Management-System

A simple console-based Library Management System built in Java using Object-Oriented Programming (OOP) concepts and file handling. This project allows you to manage books, borrow and return them, and persist data using serialization

Library-Management-System

๐Ÿ“š Library Management System (Java)

A simple console-based Library Management System built in Java using Object-Oriented Programming (OOP) concepts and file handling.

This project allows you to manage books, borrow and return them, and persist data using serialization (library.dat file).


๐Ÿš€ Features

  • Add new books (ID, Title, Author)
  • View all books with availability status
  • Borrow books (updates availability)
  • Return borrowed books
  • Data is saved permanently (using file storage)

๐Ÿ› ๏ธ Technologies Used

  • Java (JDK 8+)
  • File Handling (Serialization)
  • OOP Concepts (Encapsulation, Classes & Objects)

๐Ÿ“‚ Project Structure


โ–ถ๏ธ How to Run

1. Clone this repository

git clone https://github.com/your-username/LibraryManagementSystem.git
cd LibraryManagementSystem

--- Library Management System ---
1. Add Book
2. View Books
3. Borrow Book
4. Return Book
5. Exit
Enter choice: 1
Enter Book ID: 101
Enter Book Title: Java Basics
Enter Author: Avinash
โœ… Book added successfully.

--- Library Management System ---
1. Add Book
2. View Books
3. Borrow Book
4. Return Book
5. Exit
Enter choice: 2

--- Book List ---
101 | Java Basics | Avinash | Available