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<>();
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<>();
Related questions
Question

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps
