Got it! Here’s the updated README.md file with your GitHub username:
The Library Management System is a Java-based application designed to manage a library's books and users. It provides functionality for adding, removing, borrowing, and returning books, as well as searching for books by title or author. This project demonstrates fundamental programming concepts in Java, including object-oriented programming, data structures, and user interaction through a console-based interface.
- Add User: Register a new user in the library system.
- Remove User: Remove an existing user from the system.
- Add Book: Add a new book to the library's collection.
- Remove Book: Remove a book from the collection.
- Borrow Book: Allow a user to borrow a book if available.
- Return Book: Allow a user to return a borrowed book.
- Search Book by Title: Search for books by their title.
- Search Book by Author: Search for books by their author.
To get started with the Library Management System, follow these steps:
- Java Development Kit (JDK): Ensure you have JDK 8 or higher installed on your machine.
-
Clone the Repository
git clone https://github.com/udayvelupuri1/LibraryManagementSystem.git
-
Navigate to the Project Directory
cd LibraryManagementSystem -
Compile the Code
Use the following command to compile the Java source files:
javac -d out src/main/java/*.java -
Run the Application
Run the application using the following command:
java -cp out Main
Once the application is running, you will see a menu with options to manage users and books. Follow the on-screen instructions to interact with the system.
The project is organized as follows:
LibraryManagementSystem/
├── src/
│ ├── main/
│ │ ├── java/
│ │ │ ├── Main.java
│ │ │ ├── Library.java
│ │ │ ├── User.java
│ │ │ └── Book.java
└── .vscode/
├── tasks.json
└── launch.json
Main.java: The entry point of the application, providing the user interface.Library.java: Manages the library's users and books.User.java: Represents a user of the library.Book.java: Represents a book in the library..vscode/: Contains configuration files for Visual Studio Code.
- Build: Configure a build task in VS Code to compile the Java files.
- Run: Configure a launch configuration in VS Code to run the
Mainclass.
Create a tasks.json file in the .vscode directory:
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "javac",
"args": [
"-d",
"out",
"src/main/java/*.java"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$javac"
]
}
]
}Create a launch.json file in the .vscode directory:
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Launch Main",
"request": "launch",
"mainClass": "Main",
"projectName": "LibraryManagementSystem"
}
]
}Contributions to this project are welcome. Please fork the repository and create a pull request with your proposed changes.