I often see code like:
Iterator i = list.iterator(); while(i.hasNext()) { ... }
but I write that (when Java 1.5 isn\'t available or for
I prefer the for loop because it also sets the scope of the iterator to just the for loop.