Skip to content

This is a simple command-line Java application that simulates a basic search engine for a library of books.

Notifications You must be signed in to change notification settings

DebIntheCloud/Java-search-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Java Search Engine

This is a simple command-line Java application that simulates a basic search engine for a library of books. It was built using Java and stores book data in a local file using serialization. The application features a menu-based interface, logging of user interactions, and support for sorting and searching books.

πŸš€ Features

  • Add new books to the library
  • Search books by title
  • Sort books alphabetically
  • Save and load the library using serialization
  • Log user interactions
  • Console-based user menu

🧰 Built With

  • Java
  • Standard Java I/O & Collections
  • File serialization (for data persistence)

πŸ“‚ Project Structure

src/
└── searchengine/
    β”œβ”€β”€ Book.java
    β”œβ”€β”€ Library.java
    β”œβ”€β”€ LibraryMenu.java
    β”œβ”€β”€ LibrarySerializer.java
    β”œβ”€β”€ Main.java
    β”œβ”€β”€ SortUtil.java
    └── UserInteractionLogger.java

πŸ› οΈ How to Run

  1. Clone the repository:

    git clone https://github.com/yourusername/java-search-engine.git
    cd java-search-engine
    
  2. Compile the source files:

    javac src/searchengine/*.java
    
  3. Run the program:

    java -cp src searchengine.Main
    

πŸ“ Notes

  • Make sure you have Java installed (Java 11 or later recommended).
  • The application saves book data and logs into local files in the working directory.

πŸ“„ License

This project is open-source and free to use.

About

This is a simple command-line Java application that simulates a basic search engine for a library of books.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages