Skip to content

Word counter is a program coded with java, that analyze a text file by counting the number of occurrences of each word in the document. Reporting the result in a new text file containing all the words and their frequencies.

Notifications You must be signed in to change notification settings

MohannadAlnahhas/WordCounter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordCounter

Date: 22/02/2020
The output file name is a new text file. It contains all the words in the first file followed by number of times each word occurred in the document.
Finally, it shows total number of words in the document.
The program is modified so that you must run it from a terminal with the following syntax:

java wordCounter InputFileName.txt OutputFileName.txt

The output file should be similar to bigResults.txt which is the result of counting the words in big.txt
Note: the data structure used in this program is array list. Which won't be practical when the input file is huge.

About

Word counter is a program coded with java, that analyze a text file by counting the number of occurrences of each word in the document. Reporting the result in a new text file containing all the words and their frequencies.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages