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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -