# Java: Collections Exercise 2a - State Capital Output

Name ____________________________________

The solution to mapping from a state code (eg, "MI", "NY", ...) to its capital city ("Lansing", "Albany", ...) is to use a HashMap.

Problem: Given a populated HashMap, write a method, printCapitals(HashMap caps), which print the capitals and their state. For example,

       Lansing, MI
       Albany, NY