Skip to content

ebinroy10/library-management-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Library Management System in Java

This is a very simple library management system implemented in Java with basic functionality for managing books and library members.

Features

  • Book Management:

    • Add new books to the library
    • Remove books from the library
    • Search books by title or author
    • Display all books or only available books
  • Member Management:

    • Add new library members
    • Display all registered members
  • Borrow/Return Operations:

    • Members can borrow available books
    • Members can return borrowed books
    • Track book availability status

Files

  • Book.java - Represents a book with properties like ID, title, author, and availability
  • Member.java - Represents a library member with borrowing capabilities
  • Library.java - Main library class that manages books and members
  • LibraryManagementSystem.java - Main application with menu-driven interface

How to Compile and Run

  1. Compile all Java files:

    javac *.java
    
  2. Run the application:

    java LibraryManagementSystem
    

Usage

The system starts with sample data including 4 books and 3 members. You can:

  1. Add new books and members
  2. Borrow books (enter member ID and book ID)
  3. Return books (enter member ID and book ID)
  4. Search for books by title or author
  5. View all books, available books, or members
  6. Remove books from the library

Sample Data

The system comes pre-loaded with:

  • Books: "The Great Gatsby", "To Kill a Mockingbird", "1984", "Pride and Prejudice"
  • Members: John Doe, Jane Smith, Bob Johnson

Example Usage

  1. Run the program
  2. Choose option 7 to see all books
  3. Choose option 4 to borrow a book (use member ID 1 and book ID 1)
  4. Choose option 8 to see available books
  5. Choose option 5 to return the book

This is a basic implementation suitable for learning Java concepts like classes, objects, collections, and basic input/output operations.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages