What are the considerations of using Iterable vs. Collection in Java?
For example, consider implementing a type that is primarily concerned with contai
Some constructors, e.g. ArrayList(Collection c), use the toArray() method of Collection for efficiency.