Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.12 KB

README.md

File metadata and controls

41 lines (33 loc) · 1.12 KB

Java Quiz Week 10 day 1

Overview

  • This quiz will measure your understanding of Collections:
    1. collections
      • WordCounter
      • Food - Difficult
      • Curry
      • Pepper
      • Spice
      • Ginger


Collections

Word Counter

  • Description
    • The purpose of this class is to manage a mapping of String to Integer.
    • 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
  • Methods to Complete
    • Map<String, Integer> getWordCountMap()

Food

  • 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.
  • Methods to Complete
    • List<Spice> getAllSpices()
    • <SpiceType extends Class<? extends Spice>> Map<SpiceType, Integer> getSpiceCount()
    • void applySpice(Spice spice)

Curry, Ginger, Pepper

  • Description
    • The purpose of this class is to create a concrete implementation of a Spice
  • Methods to Complete
    • String getName()