X1138: Add entries to HashMap

Add new words to the dictionary. Write a method that adds the following words to the dictionary. Remember, you add words to a HashMap by calling the put() method.

dictionary.put( <<word english>>, <<word in spanish>>)

Add the following words; the first word on the line is in English followed by the corresponding Spanish word.

"dog", "perro"
"cat", "gato"
"guinea pig", "cobaya"
"fish", "pez"
"bird", "pájaro"
"parakeet", "perico"
"turtle", "tortuga"
"snake", "serpiente"

Your Answer:

Feedback

Your feedback will appear here when you check your answer.