|
@@ -3,6 +3,7 @@ package rocks.zipcode.quiz5.collections;
|
3
|
3
|
import rocks.zipcode.quiz5.objectorientation.Spice;
|
4
|
4
|
|
5
|
5
|
import java.util.ArrayList;
|
|
6
|
+import java.util.HashMap;
|
6
|
7
|
import java.util.List;
|
7
|
8
|
import java.util.Map;
|
8
|
9
|
|
|
@@ -17,7 +18,8 @@ public class Food {
|
17
|
18
|
}
|
18
|
19
|
|
19
|
20
|
public <SpiceType extends Class<? extends Spice>> Map<SpiceType, Integer> getSpiceCount() {
|
20
|
|
- return null;
|
|
21
|
+ Map<SpiceType, Integer> map = new HashMap<>();
|
|
22
|
+ return map;
|
21
|
23
|
}
|
22
|
24
|
|
23
|
25
|
public void applySpice(Spice spice) {
|