Results 1 to 3 of 3
  1. #1
    hari.kr is offline Member
    Join Date
    Feb 2010
    Posts
    8
    Rep Power
    0

    Default ListIterator implementation

    Hi,
    Anyone knows which class implements ListIterator interface. I ran through the api's but can't get any clue. If no class implements then how is it that we can use the previous() method ?

    Thanks.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    It is implemented by inner classes in the "List" collection types.

    I.E.
    Java Code:
    List<String> a = new ArrayList<String>();
    ListIterator<String> li = (ListIterator<String>) a.iterator();

  3. #3
    hari.kr is offline Member
    Join Date
    Feb 2010
    Posts
    8
    Rep Power
    0

    Default

    Ok, I checked the source files then I got that it is implements in the inner class

    Thanks for Reply.
    Last edited by hari.kr; 02-15-2010 at 09:31 AM.

Similar Threads

  1. Web service Implementation
    By kirtichopra2003 in forum Advanced Java
    Replies: 0
    Last Post: 10-14-2009, 09:13 AM
  2. Stack implementation
    By jefrazie in forum New To Java
    Replies: 3
    Last Post: 10-07-2009, 12:59 PM
  3. Method implementation
    By kathyla18 in forum New To Java
    Replies: 6
    Last Post: 04-02-2009, 06:44 AM
  4. Bidirectional Traversal with ListIterator
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-16-2008, 10:37 PM
  5. using ListIterator with ArrayList
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-13-2007, 10:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •