Build a basic console-based Library Management System using Java that allows:
- Viewing books and users
- Issuing a book to a user
- Returning a borrowed book
- Displaying data in the console with validation
It uses Java console input/output and runs in a loop until the user exits.
- Java (JDK 24)
- Eclipse IDE
- Git & GitHub
- Open Eclipse IDE
- Create a new Java Project
- File → New → Java Project
- Name it: 'Task3'
- Click Finish
- Create a new Java class
- Right-click on src → New > Class
- Name: 'LibraryManagementSystem'
- Check the option: public static void main(String[] args)
- Click Finish
- Write the code
- in 'LibraryManagementSystem.java'
- Run the program
- Right-click the file → Run As → Java Application
- Use the terminal in Eclipse
- Choose options from the menu to view books, users, issue or return books
- Java Classes & Objects (Book, User, Library)
- Object-Oriented Programming (OOP Principles)
- Encapsulation (private fields with getters/setters)
- ArrayList for dynamic in-memory storage
- Control Structures (if, while, switch)
- Scanner Class for user input
- Method Overriding (toString() for clean output)