Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java 1.5 for loop

 
clakare bright
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You had a question??

In future, please use code tags.
I have edited your original post for now. As you can see it is much more readable and easier to understand.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15207
36
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to know more about the enhanced for loop syntax of Java 5, see this: The For-Each Loop
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's odd. I saw that post earlier today, and there was a question. I think something about the performance of the loop being bad when iterating a 1000 times.
 
Campbell Ritchie
Sheriff
Posts: 48428
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please don't anybody edit their posts like that. It makes the remainder of the thread unintelligible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic