• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread - TreeSet Iterator

 
Sangita Mishra
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic