for-each for Iterable objects
I though that for-each loop construct works on any Iterable object but it looks like that the for-each loops only work on Collection objects. Wouldn't it be better if it worked on Iterable objects too?
So we could write code like this: http://www.jroller.com/page/komu/20040403#pythonic_file_iteration_in_java
Message was edited by: behrangsa