java读取excel的方法

来源:互联网 发布:淘宝买家好评率90低吗 编辑:程序博客网 时间:2024/06/05 07:04

 

 try {            is = new FileInputStream(fileName);            rwb = Workbook.getWorkbook(is); Sheet sheet = rwb.getSheet(sheetName); } catch (FileNotFoundException e) {            throw new RuntimeException(e);        } catch (BiffException e) {            throw new IllegalArgumentException(e);        } catch (IOException e) {            throw new RuntimeException(e);        }
原创粉丝点击