Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 926 Bytes

File metadata and controls

26 lines (15 loc) · 926 Bytes

Book Word Counter

Book Word Counter is a Java program that counts the frequency of each word in a book and allows users to query for the count of specific words.

The program uses a Map data structure, enabling it to search for words in O(1) time complexity, making it super fast.

Features

  • Search for the frequency of a specific word in a book

Prerequisites

  • Java 8 or higher

Running the Program

  1. Clone the repository: git clone https://github.com/Computer-Science-Classes/book-word-counter.git
  2. Navigate to the project directory: cd book-word-counter
  3. Compile the program: javac BookWordCounter.java
  4. Run the program: java BookWordCounter

The program will prompt you to enter the name of a book and then a word. You can continue to enter words until you type 'quit'.

License

This project is licensed under the terms of the MIT license. For more information, see LICENSE.