Coder Social home page Coder Social logo

file-indexer's Introduction

File-Indexer

A command line application that takes text files as inputs and returns the 10 most common words found across all files.

To run, ensure you have Java 8 and then run:

javac FileIndexer.java

Then, to run the program:

java FileIndexer [text_files...]

The program will read the files and count the number of occurrences of each word read. It will then output the 10 most common words across all input files.

To run tests simply execute with the text files provided. An example run is:

java FileIndexer test/input.txt test/input2.txt test/input3.txt

Output will appear in the following format:

1.      the     41371
2.      of      23326
3.      and     20131
4.      to      14255
5.      a       13603
6.      in      11884
7.      that    5706
8.      his     5585
9.      was     5343
10.     is      5142

file-indexer's People

Contributors

mkhowaja avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.