A
abir
Hi ,
How can I make something like
List<MyClass> list;///or any other Collection
Iterator<MyClass> it = list.iterator();
Iterator<MyClass> next = ++it;
i.e I need a clone of the next iterator (like the one we do in C++ )
can something like
Iterator<MyClass> next = it.close();
next.next(); can be done?
In that case how the client code will get back the value( again) ?
so to say, how can my algorithm work with two iterators ? or how to
get copy of an iterator from another (not from Collection)
thanks
abir
How can I make something like
List<MyClass> list;///or any other Collection
Iterator<MyClass> it = list.iterator();
Iterator<MyClass> next = ++it;
i.e I need a clone of the next iterator (like the one we do in C++ )
can something like
Iterator<MyClass> next = it.close();
next.next(); can be done?
In that case how the client code will get back the value( again) ?
so to say, how can my algorithm work with two iterators ? or how to
get copy of an iterator from another (not from Collection)
thanks
abir