hashset - to find the frequency of words in a text file using java -
Ive parsed the entire contents of a given input text file and managed to store each word in a hash set I but now I need to find out every word of these words in this input file, how can I go about this about any suggestion? :
instead of a hashset
instead of hashset
and This class is treated as value:
class counter {public int frequency; }
addWord ()
then looks like this:
public zeros addWord (string word) {counter C = map Mill (words); If (C == empty) {c = new counter (); Map.put (word, c); } C. Frequency ++; }
Comments
Post a Comment