FileInputStream fis = new FileInputStream("K:/1.xls");
POIFSFileSystem poi = new POIFSFileSystem(fis);
HSSFWorkbook hw = new HSSFWorkbook(poi);
HSSFSheet sheet = hw.getSheetAt(0);
for(int i=0;i<sheet.getPhysicalNumberOfRows();i++){
HSSFRow row = sheet.getRow(i);
HSSFCell cell = row.getCell((short)0);
System.out.print(cell+",");
cell = row.getCell((short)1);
System.out.println(cell+",");
}