LibraryManagementSystem is a Java console-based application designed to manage the basic operations of a library. It allows users to add, search, remove, sort, and sell books, while keeping track of sold books and total sales revenue. The system demonstrates the use of object-oriented programming along with sorting and searching algorithms.
- π Add Book: Enter book details (name, author, price) to add to the collection.
- π Search Book: Find a book by name using binary search.
- β Remove Book: Delete a book by name from the collection.
- π View All Books: Display all currently available books.
- π Sort Books by Price: Sorts books in ascending order using quick sort.
- π° Sell Book: Remove a book from the list and add to sold records.
- π¦ View Sold Books & Total Sales: Displays all sold books and total sales amount.
- πͺ Exit: Safely exit the program.
- Java SE (Standard Edition)
- OOP (Object-Oriented Programming)
- Java Collections (List, Iterator, Comparator)
- Algorithms:
- Binary Search (for fast searching by name)
- Quick Sort (for efficient price-based sorting)
- Clone or download this repository.
- Navigate to the project directory in your terminal.
- Compile the program:
javac LibraryManagementSystem.java