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.
Printable View
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.
It is implemented by inner classes in the "List" collection types.
I.E.
Code:List<String> a = new ArrayList<String>();
ListIterator<String> li = (ListIterator<String>) a.iterator();
Ok, I checked the source files then I got that it is implements in the inner class
Thanks for Reply.