How to know number of sheets in a workbook?

Supereme picture Supereme · Jan 16, 2010 · Viewed 21.2k times · Source

I'm using hssf api for reading data from xls files. But is there any way to get the exact no. of sheets in a workbook containing stored data?

Answer

Narayan picture Narayan · Jan 16, 2010

What does getNumberOfSheets return you?