| Author |
Iterator for an array
|
Akhilesh Trivedi
Ranch Hand
Joined: Jun 22, 2005
Posts: 1493
|
|
My friend sent me this code and asked me about the for loop there. I said it will not work in 1.4 and though i bragged about enhanced-for loop in java 5., for the initial 2-3 mintues i was trying to fix an iterator for the variable 'list' even to put a breaking-point of hasNext() as the 'for condition'. Only later i realaized... list was not a List... it was array. [ January 17, 2008: Message edited by: Akhilesh Trivedi ]
|
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
|
 |
 |
|
|
subject: Iterator for an array
|
|
|