Sometimes, you'd like to just iterate over all the rows in - a sheet, or all the cells in a row. This is possible with - a simple for loop.
-Luckily, this is very easy. Row defines a - CellIterator inner class to handle iterating over - the cells (get one with a call to row.cellIterator()), - and Sheet provides a rowIterator() method to - give an iterator over all the rows. These implement the - java.lang.Iterable interface to allow foreach loops.
+Sometimes, you'd like to just iterate over all the sheets in + a workbook, all the rows in a sheet, or all the cells in a row. + This is possible with a simple for loop.
+These iterators are available by calling workbook.sheetIterator(), + sheet.rowIterator(), and row.cellIterator(), or + implicitly using a for-each loop. + Note that a rowIterator and cellIterator iterate over rows or + cells that have been created, skipping empty rows and cells.