permaculture playing cards
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Thread - TreeSet Iterator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Thread - TreeSet Iterator" Watch "Thread - TreeSet Iterator" New topic

Thread - TreeSet Iterator

Sangita Mishra

Joined: Jun 15, 2005
Posts: 22

It's giving compile error. Can somebody please tell me what would be the exact metoh of TreeSet iterator in this case?
[ June 26, 2005: Message edited by: Sangita Mishra ]
Abdulla Mamuwala
Ranch Hand

Joined: Jan 09, 2004
Posts: 225
The TreeSet class does not have a method 'next', you need to call the method 'next' on the Iterator object. Check the API at,
TreeSet API

You need to make the following change for our code to compile, and show meangingful results,
I agree. Here's the link:
subject: Thread - TreeSet Iterator
It's not a secret anymore!