title: HashMap gets all values but returns only last entry
body: <p>I am getting data from the hashmap.And i want to add it in the excel file using POI.But the problem is program adds only last item in excel.but while debugging its giving all values.
  Here is my code</p>
  
  <pre><code> for (int j = 0; j &lt; proList.size(); j++) {
          HashMap hashMap = proList.get(j);
          Iterator&lt;Object&gt; iterator = hashMap.entrySet().iterator();
          while (iterator.hasNext()) {
              Map.Entry&lt;String, String&gt; entry = (Map.Entry&lt;String, String&gt;) iterator.next();
              rows=sheet1.createRow(j+1);
              cc=rows.createCell(j);
              cc.setCellValue(entry.getValue());
  
  
  
  
          }
      }
  </code></pre>