package arraylistwordbag;
import java.util.*;

public class ArrayListWordBag {
    
    ArrayList<MyWord> aList;

    
    public ArrayListWordBag() {
        aList = new ArrayList<MyWord>();
    }
    

    //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 number of occurances of word in bag
    public int getFrequency(String word) {
        
    }
       
    
    public static void main(String[] args) {
        
    }

}
