The
Iterable
interface has only one method: public interface Iterable<T> { public Iterator<T> iterator(); }
A class that implements the
Iterable
can be used with the new for-loop. Read full article from Java Collections - Iterable
Iterable
interface has only one method: public interface Iterable<T> { public Iterator<T> iterator(); }
Iterable
can be used with the new for-loop.
No comments:
Post a Comment