The author of this tip is John Zukowski, president and principal consultant of JZ Ventures, Inc. The enhanced for-loop is a popular feature introduced with the Java SE platform in version 5.0. Its ...
I believe your alternative is exactly equivalent, so the reason they didn't do it that way is just that they preferred their way for whatever reason. Presumably they found it familiar and readable and ...