Skip to content

The Book Word Counter is a quick and efficient tool developed in Java for analyzing the frequency of words in a book. The user can interactively choose a book and search for word frequencies, providing a simple way to perform basic textual analysis on a piece of literature.

License

Notifications You must be signed in to change notification settings

Computer-Science-Classes/book-word-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The Book Word Counter is a quick and efficient tool developed in Java for analyzing the frequency of words in a book. The user can interactively choose a book and search for word frequencies, providing a simple way to perform basic textual analysis on a piece of literature.

Topics

Resources

License

Stars

Watchers

Forks

Languages