Tengo el siguiente fragmento de una jsp, hasta el momento funciona, es decir hace lo que quiero, pero creo que se puede mejorar el codigo

Ya le intente con for con while , sin embargo no me da el resultado esperado.
Alguna Idea?
Código PHP:
List list = new ArrayList();
int i=0;
while (rsCount.next()){
String j = rsCount.getString(1);
String k = rsCount.getString(2);
String l = rsCount.getString(3);
String m = rsCount.getString(4);
list.add(j);
Iterator iter = list.iterator();
i++;
while (iter.hasNext()) {
iter.next();
HSSFRow row = sheet1.createRow((short)i);
HSSFCell cell = row.createCell((short)0);
row.createCell((short)1).setCellValue(j);
row.createCell((short)2).setCellValue(k);
row.createCell((short)3).setCellValue(l);
row.createCell((short)4).setCellValue(m);
}
}