• Post Reply Bookmark Topic Watch Topic
  • New Topic

creating user defined Iterator .  RSS feed

 
Eghe Urhos
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please assist. I'm writting a user defined method called getIterator
which returns an object that implement the standard java.util.Iterator interface. getIterator is not a method that you would find in the standard java.util.Map interface.
public java.util.Iterator getIterator( )
{ /* Implementation not shown */ }
private class LocalIterator implements java.util.Iterator
{/* next and hasNext not shown */
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are your doubts???
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!