public static String[] getXlsWorksheets(File file) 
        throws IOException, jxl.read.biff.BiffException
    {
        Workbook workbook = Workbook.getWorkbook(file);
        String[] sheets = workbook.getSheetNames();
        workbook.close();
        return sheets;
    }
public static String [ ] getXlsWorksheets ( File file ) throws IOException , jxl . read . biff . BiffException { Workbook workbook = Workbook . getWorkbook ( file ) ; String [ ] sheets = workbook . getSheetNames ( ) ; workbook . close ( ) ; return sheets ; }
Returns the sheets from the given Excel XLS file.
@param file The file with the name of the XLS file
@return The sheet names from the XLS file
@throws IOException if the file cannot be opened
@throws jxl.read.biff.BiffException if there is a format error with the file