This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes question about for loop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "question about for loop " Watch "question about for loop " New topic
Author

question about for loop

PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 186
May be I forgot. Can somebody tell me what is the following for loop means.

for(Object entryObject : getMap().entrySet() )
Wayan Saryada
Ranch Hand

Joined: Feb 05, 2004
Posts: 105

It's the for..each loop style in Java. It can be read as "repeat for each object in the map's entry set".


Website: Learn Java by Examples
PradeepPillai Pradeep
Ranch Hand

Joined: Nov 15, 2005
Posts: 186
Thank you.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: question about for loop
 
It's not a secret anymore!