Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: code fix

...

an enhanced for statement of the form

Code Block
for (ObjType obj : someIterableItem) { 
  // ...
}

is equivalent to a standard for loop of the form

Code Block
for (Iterator myIterator = someIterableItem.iterator(); iteratormyIterator.hasNext();) {
  ObjType obj = myIterator.next();
  // ...
}

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7674dbb697adfa62-abebbcd2-4dd044d0-a2f389a7-f0739a61971bb22ecadea469"><ac:plain-text-body><![CDATA[

[[JLS 2005

AA. Bibliography#JLS 05]]

[§14.14.2,"The enhanced for statement"

http://java.sun.com/docs/books/jls/third_edition/html/statements.html#14.14.2]

]]></ac:plain-text-body></ac:structured-macro>

...