Write a statement to create an instance of a class Dictionary that implements DictionaryInterface. Your dictionary contains Word objects that are lists of synonyms for words. The key value is a String representing the word to look up. Call your dictionary thesaurus. DictionaryInterface thesaurus = new DictionaryInterface<>(); Word> thesaurus = new Dictionary<>(); DictionaryInterface thesaurus = new DictionaryInterface<>(); DictionaryInterface thesaurus = new Dictionary<>();

icon
Related questions
Question
Write a statement to create an instance of a class Dictionary that implements DictionaryInterface.
Your dictionary contains Word objects that are lists of synonyms for words. The key value is a String
representing the word to look up. Call your dictionary thesaurus.
DictionaryInterface <String, Word> thesaurus = new DictionaryInterface<>();
Word> thesaurus = new Dictionary<>();
DictionaryInterface<String,
DictionaryInterface<Word, String> thesaurus = new DictionaryInterface<>();
DictionaryInterface<Word, String> thesaurus = new Dictionary<>();
Transcribed Image Text:Write a statement to create an instance of a class Dictionary that implements DictionaryInterface. Your dictionary contains Word objects that are lists of synonyms for words. The key value is a String representing the word to look up. Call your dictionary thesaurus. DictionaryInterface <String, Word> thesaurus = new DictionaryInterface<>(); Word> thesaurus = new Dictionary<>(); DictionaryInterface<String, DictionaryInterface<Word, String> thesaurus = new DictionaryInterface<>(); DictionaryInterface<Word, String> thesaurus = new Dictionary<>();
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer