ya now i get the values out
but is there a way to store the values which are retrieved from excel sheet into an array
so that i can sort them
when i try to bring an array on
it says :::::::: Exception in
thread "main" java.lang.NullPointerException
i used this part for it
Cell a1[]=null;
try
{
workbook=jxl.Workbook.getWorkbook(f);
for(int i=0;i<30;i++){
sheet=workbook.getSheet(0);
a1[i]= sheet.getCell(6,i);
System.out.println(a1[i].getContents());
}
workbook.close();
}catch(IOException ex){
and if i wont initialize the array i get an error saying not initialized.....
what can i do now