This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java 1.5 for loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java 1.5 for loop" Watch "Java 1.5 for loop" New topic
Author

Java 1.5 for loop

clakare bright
Greenhorn

Joined: Jul 23, 2008
Posts: 5
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10171
    
    8

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.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

If you want to know more about the enhanced for loop syntax of Java 5, see this: The For-Each Loop


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41134
    
  45
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.


Ping & DNS - my free Android networking tools app
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
Please don't anybody edit their posts like that. It makes the remainder of the thread unintelligible.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java 1.5 for loop
 
Similar Threads
Mixing Generics and Legacy code question
Simple ArrayList conundrum?
SCJP5 Study Guide Q2. Page 611/622 -- Generics and Collections
Question about Random Number Generation...