public static <T>Iterator<T> arrayAsIterator(T[] array){
  return new ArrayIterator<T>(array);
}

public static < T > Iterator < T > arrayAsIterator ( T [ ] array ) { return new ArrayIterator < T > ( array ) ; }
helper method for exposing contents of arrays using a read - only iterator
