title: How to write value inside excel file using iterator
body: <pre><code>Iterator&lt;ArrayList&lt;E&gt;&gt; iterator = (Iterator&lt;ArrayList&lt;E&gt;&gt;) rraylist.iterator();
  int ro=1;
  while (iterator.hasNext()) {
      col=0;
      Row row=sheet.createRow(ro++);
      ArrayList&lt;E&gt; innerlist = iterator.next();
      Iterator&lt;E&gt; innerIterator = innerlist.iterator();
      while (innerIterator.hasNext()) {
  
          //System.out.println(innerIterator.next());// if i am displaying  value on console then value are getting displayed
  
          row.createCell(col++).setCellValue(innerIterator.next());
          //here when i want to store into excel sheet then getting exception 
      }
  }
  </code></pre>