I have a huge excel file with tons of columns which looks like this :-
Column1 Column2 Column3 Column4 Column5 abc def ghi mn
for(org.apache.poi.ss.usermodel.Row tmp : hssfSheet){ for(int i = 0; i<8;i++){ System.out.println(tmp.getCell(i)); } }