N-gram finder

An n-gram is a continuous sequence of size n from a given input. In this example we are using strings. The code shows the most frequent n-gram found within a given piece of text.

To run, open in intellj and run or manually through javac/ java cp . Main

To add different ngrams, change the text passed in Main.java, to look for ngrams of different sizes change Main.java as well.