title: Inserting multiple data into an excel sheet at a time using JXL
body: <p>I have a scenario where I have to insert multiple lines of data into an Excel Sheet. I am using JXL API for this purpose. However the problem is that, only the last set of data in the loop is being written in to the Excel sheet. Can someone please help me in achieving it or provide a code snippet or an example?</p>
  
  <p>Thanks a lot.</p>
  
  <pre><code>
  
      int ccount = ws.getColumns();
      int rc = ws.getRows();
  
      int rnum = rc - 10;
  
      for(int i=1;i(lesser than symbol)3; i++){
          rnum++;
          String srnum = String.valueOf(rnum);
          wsheet.addCell(new jxl.write.Label(1, rc, srnum, wcf1));
          wsheet.addCell(new jxl.write.Label(2, rc, "b", wcf1));
          wsheet.addCell(new jxl.write.Label(3, rc, "c", wcf1));
          wsheet.addCell(new jxl.write.Label(4, rc, "d", wcf1));
          System.out.println("executing...........");
          wsheet.addCell(new jxl.write.Label(5, rc, "e", wcf1));
          wsheet.addCell(new jxl.write.Label(6, rc, "f", wcf1));  
  
          wb.write();
  
          rc++;   
      }
  
  </code>
  </pre>
  
  <p>Here, wcf1 refers to the WritableCellFormat which I have defined in another method.
  In this sheet, I have inserted some information till row number 11 and now I need to insert multiple data after that. So I used for loop. But its not giving the result properly. Please help me out with this.</p>