• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

code logic

What does this say?

for (int x: y)
0
no158
Asked:
no158
  • 2
2 Solutions
 
CEHJCommented:
Same as

for(int x = 0;x < y.length;x++)
0
 
basicinstinctCommented:
This is a new java 1.5 construct. Read about it here:

http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html
0
 
CEHJCommented:
:-)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now