标签:对象 string exception nbsp ring sheet system public 读取excel
绝对路径String filepath= "E:\\a.xls";
public static String getExcelData(File file,String lang,int length){ String result = null; try { Workbook book = Workbook.getWorkbook(file); // 获得第一个工作表对象 Sheet sheet = book.getSheet(0); // 得到第一列第一行的单元格 Cell language = sheet.getCell(0, 0);//列 ,行 } book.close(); } catch (Exception e) { System.out.println(e); } return result; }
标签:对象 string exception nbsp ring sheet system public 读取excel
原文地址:http://www.cnblogs.com/Neanderthal/p/6061506.html