0
/ 1.0
Consider a dictionary that given an English word, returns the Spanish word. Add new English-Spanish word pairs to the dictionary.
...
Consider a dictionary that given an English word, returns the Spanish word. Add new English-Spanish word pairs to the dictionary.
Remember, you add words to a HashMap by calling the put() method. dictionary.put( <<word english>>, <<word in spanish>>)
Write a method that adds the following English-Spanish word pairs to the dictionary:
"dog", "perro"
"cat", "gato"
"guinea pig", "cobaya"
"fish", "pez"
"bird", "pájaro"
"parakeet", "perico"
"turtle", "tortuga"
"snake", "serpiente"
Your feedback will appear here when you check your answer.