So I have this variable PV1 who stores from an Excel file the first row. But I want a variable that stores the entire row in a vector.
I use System.out.println()
just to see if it takes the good column.
String PV1;
for(int col = 0;col < columns;col++)
{
for(int row = 1;row < rows;row++)
{
PV1 = sheet.getCell(1, row).getContents();
System.out.println(Double.parseDouble(PV1));
}
}
I am using jxl to access the Excel file.
Any help would be much appreciated!
Edit: This is the table and i need to store in PV1 all the rows.