Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Programmer Certification (OCPJP)
Iterator in lists
Mohit G Gupta
Ranch Hand
Posts: 634
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Iterator<Dog> i3 = d.iterator();
List<Dog> d = new ArrayList<Dog>();
Dog is a class.
what does d.iterator do ?
OCPJP 6.0 93%
OCPJWCD 5.0 98%
Christophe Verré
Sheriff
Posts: 14691
16
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
what does d.iterator do ?
It returns an Iterator. If you don't know what an Iterator is, check the API of java.util.Iterator.
[My Blog]
All roads lead to JavaRanch
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How do iterate 2 list's using for-each loop(enhanced for loop)
Confusion in Generics
printing...static context?
NoSuchMethod error ?
ArrayList.indexOf
More...