I want to transfer this data to an array to perform mathematical operations with the data I read from excel. how can I do that?
import java.io.IOException;
import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.write.*;
import jxl.write.Number;
public class SimMod {
public static void main(String[] args) throws Exception {
File f=new File("C:\\Users\\data.xls");
Workbook Wb=Workbook.getWorkbook(f);
Sheet sh=Wb.getSheet(0);
int [] mathArray=new int[48];
int row=sh.getRows();
int col= sh.getColumns();
for (int i=0;i<row;i++){
for (int j=0;j<col;j++){
Cell c=sh.getCell(j,i);
System.out.print(c.getContents());
}
System.out.println(" ");
}
}
}