code logic

What does this say?

for (int x: y)
no158Asked:
Who is Participating?
 
basicinstinctConnect With a Mentor Commented:
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
 
CEHJConnect With a Mentor Commented:
Same as

for(int x = 0;x < y.length;x++)
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.