I have one for loop with another loop inside, the first loop sets the row and the second loop reads thru 4 cells, the first time the loop runs it works well but after that im guessing its not changing rows because it just repeats the result from the first loop but without showing the cell value, here is the code:
for(int k=1; k<=2; k++){
XSSFRow row1 = worksheet.getRow(e);
System.out.println("Row: "+e);
e++;
for(int i=0;i<Oleo18_1.size();i++){
XSSFCell c = row1.getCell((short) d);
if (c == null || c.getCellType() == Cell.CELL_TYPE_BLANK) {
Oleo18_1.set(i, false);
}
else {
Oleo18_1.set(i, true);
c.setCellType(Cell.CELL_TYPE_STRING);
}
if(Oleo18_1.get(i) == true){
values_18_1.set(i, 9.09090909);
}
String a1Val = c.getStringCellValue();
System.out.println("valor ponderacion"+(d+1)+": "+values_18_1.get(i));
System.out.println("valor celda "+(d+1)+": "+a1Val);
d++;
}
}