public Object next(){
  if (pos < size)   return Array.get(array,pos++);
  throw new NoSuchElementException("No more elements: " + pos + " / "+ size);
}

public Object next ( ) { if ( pos < size ) return Array . get ( array , pos ++ ) ; throw new NoSuchElementException ( "No more elements: " + pos + " / " + size ) ; }
move to next element in the array .
