@@ -0,0 +1,1267 @@
+/**%0A * This class is designed to store and manipulate a list of words.%0A *%0A * You need to complete two methods:%0A *      (a) numWordsOfLength%0A *      (b) removeWordsOfLength%0A */%0Aimport java.util.*;%0Apublic class WordList %7B%0A    private ArrayList%3CString%3EmyList;%0A%0A    public WordList() %7B  // Constructor%0A        myList = new ArrayList%3CString%3E();%0A    %7D%0A%0A    public void add(String word) %7B myList.add(word);  %7D%0A%0A    public String toString() %7B return myList.toString(); %7D%0A%0A    /*** %3C%3C%3C Complete for part (a) %3E%3E%3E%0A     * postcondition: returns the number of words in this WordList that%0A     * are exactly len letters long.%0A     */%0A    public int numWordsOfLength(int len)%0A    %7B%0A        int count = 0;%0A%0A        for (String i : myList)%0A            if (i.length() == len) count++;%0A%0A        return count;%0A    %7D%0A%0A    /*** %3C%3C%3C%3C Complete for part (b) %3E%3E%3E%0A     * postcondition: all words that are exactly len letters long%0A     * have been removed from this WordList, with the order of the%0A     * remaining words unchanged%0A     */%0A    public void removeWordsOfLength(int len)%0A    %7B%0A        for (int i=0; i%3CmyList.size(); i++) %7B%0A            if (myList.get(i).length() == len) %7B%0A                myList.remove(i);%0A                i--;  // Adjust for removal%0A            %7D%0A        %7D%0A    %7D%0A%7D%0A

Create WordList.java