package queues; /** * This interface is used to indicate that a given class can be * iterated over. The compiler uses this interface to determine which * classes are suitable targets of the foreach construct. */ public interface Iterable<E> { /** * Returns an iterator for the collection. */ Iterator<E> iterator (); }