package hashmapwordbag; import java.util.*; public class HashMapWordBag { HashMap hm; public HashMapWordBag() { hm = new HashMap(); } //add an occurance of word to the bag public void addOccurance(String word) { } //remove an occurance of word from the bag public void removeOccurance(String word) { } //return the most frequent string in the bag public String mostFrequent(){ } //return number of distinct words public int numberOfWords() { return hm.size(); } //return number of occurances of word in bag public int getFrequency(String word) { } public static void main(String[] args) { } }