Date: 11/13/05 (Java Web) Keywords: no keywords After enhanced for loop was introduced with J2SE 1.5.x aka J5SE, I made it a delightful habit to use it. You know what I am talking about, right? For example previously I used to write: private gbWay() { .... for (Iterator<Country> i = countries.iterator(); i.hasNext();) { [...] Source: http://blog.taragana.com/index.php/archive/tips-on-java-enhanced-for-loop/
|