Access values of hashmap
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/46898/how-do-i-iterate-over-each-entry-in-a-map">How do I iterate over each Entry in a Map?</a>  </p>
</blockquote>



<p>I am having a MAP, <code>Map&lt;String, Records&gt; map = new HashMap&lt;String, Records&gt; ();</code></p>

<pre><code>public class Records 
{
    String countryName;
    long numberOfDays;

    public String getCountryName() {
        return countryName;
    }
    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }
    public long getNumberOfDays() {
        return numberOfDays;
    }
    public void setNumberOfDays(long numberOfDays) {
        this.numberOfDays = numberOfDays;
    }

    public Records(long days,String cName)
    {
        numberOfDays=days;
        countryName=cName;
    }

    public Records()
    {
        this.countryName=countryName;
        this.numberOfDays=numberOfDays;
    }
</code></pre>

<p>I have implemented the methods for map, now please tell me How do I access all the values that are present in the hashmap. I need to show them on UI in android ? </p>
