java.lang.outofmemory Problem
am parsing Excel file which contains 64k records by using jakartha POI Packages.
while loading the file am getting java.lang.outofmemory error.
can please help me how to resolve this problem.
code is as follows
ArrayList list = new ArrayList();
FileInputStream myxls = new FileInputStream("test.xls"); HSSFWorkbook wb= new HSSFWorkbook(myxls);
HSSFSheet sheet = wb.getSheetAt(0);// first sheet//
HSSFRow row= sheet.getRow(0); //first row
int rows = sheet.getLastRowNum();
for (int k=0; k < rows ; k++){
HSSFRow row= sheet.getRow(k);
HSSFCell compoundCell = row.getCell((short)0);
System.out.println(compoundCell.getNumericCellValue());
list.add(new Double(k));
System.out.println("row no >"+k);
}

