I have 100 rows 10 columns. reading each row one by one and column also. After 10th column the cursor not moving into next row. It's going to 11 12 13 etc column. Could anyone help me how to move the next row once reading 10th column and how to stop reading empty 11 column.
Here is some code:
while (rowIterator.hasNext()) {
row = rowIterator.next();
while (cellIterator.hasNext()) {
cell = cellIterator.next();
if(cell.getColumnIndex()==0 ) { }
.....
if(cell.getColumnIndex()==10) { }
}
}