- This quiz will measure your understanding of Collections:
- collections
WordCounter
Food
- DifficultCurry
Pepper
Spice
Ginger
- collections
- Description
- The purpose of this class is to manage a mapping of
String
toInteger
. - The class should be able to identify the number times a word has occurred in a given
String
array- 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
Spice
object. - 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()