thank you very much Aptem your information was very valuable, Mr. Sang Shin should have mentioned this in the lesson as long as he is using this kind of for loop. thank you again. Yours
2009/8/14 Артем Шевчук <[email protected]> > > This is not a simple for loop, this type of loop is called For-each, hi is > made for more convenient iteration over arrays an collections, here is a > link http://www.leepoint.net/notes-java/flow/loops/foreach.html > > -----Original Message----- > From: Abbas Zaini <[email protected]> > To: Free Java Programming Online Training Course By Sang Shin < > [email protected]> > Date: Fri, 14 Aug 2009 10:00:43 +0300 > Subject: [java programming] Lab1021 > > > 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 > > > > > > > > > > > > > -- 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 -~----------~----~----~----~------~----~------~--~---
