Skip to content

ZCW-Java91/Java.Quiz10-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages