by aasarava · 16y ago · 0 comments
for (int i=0; i<items.length; i++) { //do something small with items[i] }
However, I should confess that I usually write it as ii:
for (int ii = 0; ii < items.length; ii++) ...I personally find the doubling awkward, and with modern editors I use semantic searching much more than raw text scans so the benefit of doubling is marginal, but there is at least one sensible reason you might choose to do it.
(I'm not a huge fan of point-free, I'm just being facetious ;)