For this question, you can assume you have access to a class called Pet
that stores all of the data that applies to a specific pet (name,...
X1117: Making Maps - Name to Pet
For this question, you can assume you have access to a class called Pet
that stores
all of the data that applies to a specific pet (name, type of animal, breed, health history, etc.).
A pet store needs to create a map that stores the name of the Pet
(stored as a String
) and the corresponding Pet
object.
Create a Map
that can store such data.
You don't need to add anything it, just create and return a Map
to
store the right data.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.