- This quiz will measure your understanding of Collections:
- collections
WordCounterFood- DifficultCurryPepperSpiceGinger
- collections
- Description
- The purpose of this class is to manage a mapping of
StringtoInteger. - The class should be able to identify the number times a word has occurred in a given
Stringarray- A word is a series of characters delimited by spaces
- The purpose of this class is to manage a mapping of
- Methods to Complete
Map<String, Integer> getWordCountMap()
- Description
- The purpose of this class is to manage a list of
Spiceobject. - The class should be able to identify the number of specific spice-type applied to an instance of a food.
- The purpose of this class is to manage a list of
- Methods to Complete
List<Spice> getAllSpices()<SpiceType extends Class<? extends Spice>> Map<SpiceType, Integer> getSpiceCount()void applySpice(Spice spice)
- Description
- The purpose of this class is to create a concrete implementation of a
Spice
- The purpose of this class is to create a concrete implementation of a
- Methods to Complete
String getName()