This Git repository contains a simple Library Management System implemented in Java. The system provides basic operations for managing a library, such as adding books, checking out and returning books, removing books, displaying the list of books, displaying waiting queues, searching for a book, and exiting the system.
To run the Library Management System, follow these steps:
- Clone the repository to your local machine:
git clone https://github.com/BenMohaJr/Library.git
-
Open the project in your preferred Java development environment (e.g., IntelliJ IDEA, Eclipse).
-
Run the
Main
class. -
Follow the on-screen instructions to perform various library operations.
Main.java
: The main class containing the entry point for the application.Library.java
: The Library class that implements the core functionality of the Library Management System.Operation.java
: An enum representing the possible operations that can be performed in the library.
The Library Management System supports the following operations:
- Add Book: Add a new book to the library.
- CheckOut Book: Borrow a book from the library.
- CheckIn Book: Return a borrowed book to the library.
- Remove Book: Remove a book from the library.
- Display Books: Display the list of available books in the library.
- Display Book Waiting Queue: Display the waiting queue for a specific book.
- Search A Book: Search for a book by its BookID.
- Exit: Exit the Library Management System.
-
Upon running the program, a menu will be displayed with numbered options for different operations.
-
Enter the corresponding number for the operation you want to perform.
-
Follow the prompts to provide necessary information (e.g., book name, BookID).
-
The system will execute the selected operation and display relevant information.
-
To exit the system, select option 8.
Note: The program handles invalid input gracefully and prompts the user to enter valid information.
Feel free to explore and enhance the functionality of the Library Management System!