public class WordCounter
extends java.lang.Object
Constructor and Description |
---|
WordCounter() |
Modifier and Type | Method and Description |
---|---|
static int |
getCount(java.lang.String word,
java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData) |
static void |
main(java.lang.String[] args) |
static void |
printAllCounts(java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData) |
static void |
readWordFile(java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData) |
public static void main(java.lang.String[] args)
public static int getCount(java.lang.String word, java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData)
public static void printAllCounts(java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData)
public static void readWordFile(java.util.TreeMap<java.lang.String,java.lang.Integer> frequencyData)