Hi all
would some one pleas explain to me the following code segment:
for (Object item: a1){
}
1. the word "Object" refers to a class which i don't think that we
studied in this course yet.
2. item is object of the class Object , what does the mark " : " mean
here? is it an initialization.
3. ok if the object item was initiated to a1, where is the for loop
condition, and were is the increment.
how is this thing working at all.
--
Abbas Zaini
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---