title: How to use a HashMap and use it in an ArrayAdapter to display the values in a spinner
body: <p>I have a HashMap which contains a key and value, both of which are strings. I am getting the HashMap from a different activity. I am trying to use the HashMap and put it into an array adapter so I can display a spinner with the values of the HashMap. I have tried to iterate through the HashMap and haven't had any luck.</p>
  
  <pre><code>HashMap&lt;String, String&gt; examCodesMap = (HashMap&lt;String, String&gt;) MainActivity.examCodesMap;
  </code></pre>