@SuppressWarnings("unchecked") public T next(){
  if (hasNext() == false) {
    throw new NoSuchElementException();
  }
  return (T)Array.get(array,index++);
}

@ SuppressWarnings ( "unchecked" ) public T next ( ) { if ( hasNext ( ) == false ) { throw new NoSuchElementException ( ) ; } return ( T ) Array . get ( array , index ++ ) ; }
returns the next element in the array .
