Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java 1.5 for loop  RSS feed

 
clakare bright
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Maneesh Godbole
Bartender
Posts: 11445
18
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
Sheriff
Posts: 16006
87
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
Posts: 42972
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: 55292
156
  • 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
Boost this thread!