Alright, here goes.
An iterator is used to systematically move through some organized set of data. I've never used an iterator for a plain array (i have no idea if it can even be done), but in theory here's how it should work.
There are two useful methods in the iterator class. The first is hasNext(). This returns a boolean value depending on whether or not there is another element in the set of data. It's useful for writing while loops to sort through everything.
CODE
while(iteratorName.hasNext())
{
//check the next value
}
The second useful method is next(). This pretty much returns the next element in your set of data. This is useful because you can set the element equal to a variable, then check to see if that value matches up to the one you're looking for with an if statment.
So here's what you've got so far:
CODE
while(iteratorName.hasNext())
{
int var1 = iteratorName.next();
if(var1 == valueYoureSearchingFor)
{
//return it, store it, break from the loop, do whatever you need to here
}
}
I hope this helps you get on your way. Again, I suppose that you can implement this with an array, I've just never done it before. Good luck.