int i;
for ( i = 0; i < list.size(); i = i+1)
   process list.get(i);