I have this code here:
if(!(prevStateIter.hasNext()))
{
currentCumulativeProb = 0.0;
}
else
{
//currentCumulativeProb
}
Now, I want to access next, but I don't want the iterator to iterate.
Am I using the wrong data structure? Can I use reflection? Can I declare something to clone this iterator and it's position?
Does anyone know what I can do to access "next()" without "nexting"?
Cheers.