So i have two methods. One that takes a Set as an argument and the other is an overloaded version of the same thing. For some reason when I call:
returnMap = getWordLengthMap(returnMap, itr);
It tells me that the overloaded function doesn't support the arguments. It is essentially telling me that it can't take a TreeMap or TreeSet as arguments for Map or Set? idk what im doing wrong.
public static Map<Integer, Set<String>> getWordLengthMap(Set<String> theSet) {
    TreeMap<Integer, TreeSet<String>> returnMap = 
            new TreeMap<Integer, TreeSet<String>>();
    Iterator<String> itr = theSet.iterator();
    returnMap = getWordLengthMap(returnMap, itr);
}
/**
 * Description: Overloaded recursive method
 * @param theWordLengths Map containing word lengths
 * @param theWordSetItr Iterator for Strings in map
 * @return Map
 */
public static Map<Integer, Set<String>> getWordLengthMap(
        Map<Integer, Set<String>> theWordLengths,
        Iterator<String> theWordSetItr) {
    return null; //placeholder
}
