• Post Reply Bookmark Topic Watch Topic
  • New Topic

java for statement - can someone explain this?  RSS feed

 
Alex Pandey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

       
        for( String s : clockTypes)         can someone explain this?
         
       
       
 
Ron McLeod
Bartender
Posts: 1602
232
Android Angular Framework Eclipse IDE Java Linux MySQL Database Redhat TypeScript
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's an enhanced for loop -- take a look at Using Enhanced For-Loops with Your Classes.
 
Campbell Ritchie
Marshal
Posts: 56525
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...and welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!