title: How to write data from arrayList to multiple excel sheets
body: <p><strong>I have data stored in ArrayList ,and i want to write that data in excel workbook in multiple sheets.</strong>
  I am able to write data in excel workbook, but it's writing in same sheet.
  As of now i am able to write data in the following way, as shown below in the pic:</p>
  
  <p><a href="https://i.stack.imgur.com/VlbXP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VlbXP.png" alt="enter image description here"></a></p>
  
  <p><strong>But I want to break data into multiple sheets, 
  Data should break from headers i,e S.NO,Col1...Col6, when ever this comes up, the data should write to new sheet.</strong></p>
  
  <p>I am using this code to write data into excel</p>
  
  <pre><code>for (int i = 0; i &lt; listOfResults.size(); i++) {
              row = sheet.createRow(i);
              for (int j = 0; j &lt; 7; j++) {
                  cell = row.createCell(j);
                  if (j + add &lt; listOfResults.size()) {
                      cell.setCellValue(listOfResults.get(j + add));
  
                  }
              }
  
              add += 7;
          }
  </code></pre>
  
  <p>Please help..</p>