這是從我以前在blogspirit上移過來的一篇。
IBM developerWork on Enhance looping in Java 5.0 with for/in,
"The for/in loop -- often called either enhanced for or foreach is largely a convenience feature in Java 5.0. It doesn't really offer any new functionality, but certainly makes several routine coding tasks simpler."
English version is here; Chinese version is here;
It is written by Brett McLaughlin, who is the author for O'reilly's Java 1.5 Tiger: A Developer's Notebook 其實,CSDN上, 大胃的blog中就介紹過5.0中增強了的Looping功能。