I have an Iterator that I use on a HashMap, and I save and load the iterator.
is there a way to get the previous key in the HashMap with Iterator? (java.util.Iterator)
public class EnhancedIterator implements Iterator{
private List list;
private int indexSelected=-1;
public EnhancedIterator(List list){
this.list=list;
}
@Override
public boolean hasNext() {
return indexSelected