This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

collections...urgent

 
pradeepbill arumalla
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
which class implement Listiterator interface,i did not find any class that implement on the link
http://java.sun.com/j2se/1.4.2/docs/api/index.html
my problem is that when you say
LinkedList staff=new LinkedList();
staff.add("angela");
ListIterator iter=staff.listIterator();
the listIterator() method returns an object of the class implementing the ListIterator interface
but which class is that?is it the LinkedList class (but LinkedList class doesnt implement ListItereator interface...i think)or some other class that implements ListIterator,if it is LinkedList class where is the method listIterator() implemented.
thanks
 
Ron Newman
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it's a private class which you interact with solely through the ListIterator interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic