J2SE 5.0中增強的Looping

這是從我以前在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功能。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章