12.5 Chapter Summary
Summary of the main points in this chapter.
Exceptions
throw new RuntimeException("For no reason.");Iteration
Difference between Iterators and Iterables
public interface Iterator<T> {
boolean hasNext();
T next();
}public interface Iterable<T> {
Iterator<T> iterator();
}Object Methods
toString
== vs .equals
Last updated