Originally posted by kumar prashant:
[QB]I think the program will not compile in first place as ia is not a boolean type. The middle statement in the for loop syntax should be boolean.
kumar,
This
thread is about "enhanced for loops" (aka for-each loops), a new feature in
java 1.5.
If you are studying for the
SCJP 1.4 certification, you'd better ignore this thread.