| Author |
Iterator in TestNG class
|
justin hoffer
Greenhorn
Joined: Jun 08, 2011
Posts: 1
|
|
If a class implements iterator interface, it provides next() and hasnext(). Do these next() and hasnext() get called automatically when the class's object is created?
Thanks
Justin
|
 |
Jeanne Boyarsky
internet detective
Marshal
Joined: May 26, 2003
Posts: 26184
|
|
Justin,
Welcome to CodeRanch!
No. next() and hasNext() are not called automatically on an iterator.
|
[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
|
 |
 |
|
|
subject: Iterator in TestNG class
|
|
|