* The second and third parameters specify the range for the columns to repreat.
* To stop the columns from repeating pass in -1 as the start and end column.
* The fourth and fifth parameters specify the range for the rows to repeat.
* To stop the columns from repeating pass in -1 as the start and end rows.
*/
Sheet sheet1 = wb.createSheet("new sheet");
Sheet sheet2 = wb.createSheet("second sheet");
// Set the columns to repeat from column 0 to 2 on the first sheet
Row row1 = sheet1.createRow(0);
row1.createCell(0).setCellValue(1);