新建一个Excel文件,只在第一个单元格(A1)内进行“数据有效性”设置,不输入内容,完成后保存,然后使用Java Excel API(jxl.jar)在Java程序中读取该文件,代码如下:public static void main(String[] args) throws BiffException, FileNotFoundException, IOException {
        Workbook workbook = Workbook.getWorkbook(new FileInputStream("C:/book1.xls"));
        Sheet sheet = workbook.getSheet(0);
        System.out.println("Total Rows:" + sheet.getRows());
}输出的结果为:
Total Rows:1
Warning:  Cell at A1 not present - adding a blank
Warning:  Some cells exceeded the specified bounds.  Resizing sheet dimensions from 0x0 to 1x1

总行数应该是0,打印结果却是1,结果有哪位能给解释一下啊?产生Warning的原因又是什么啊?期待!!!