Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How is colon : used in for{} loop?

807607Dec 24 2006 — edited Dec 24 2006
I was taking a Java test and found a question that asked how to use a colon : character in a for loop?... like this...

for { : }

I was supposed to fill in some objects, but I have no idea how a : is used in a for{} loop?

Any comments?
Jon
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 21 2007
Added on Dec 24 2006
5 comments
412 views