iterable是一个类接口
而iterator是iterable中的一个方法,用来返回一个迭代的对象
Collection接口继承了iterable接口,因此所有实现了Collection接口的集合类都有一个iterator方法