阅读背景:

如何在具有ArrayList的类中实现Iterable

来源:互联网 

I am going to have a class that has a ArrayList people field I want clients of this class to be able to iterate over those objects. How do I do this? Do I just return people.iterator(); ?I am going to have a class that has a ArrayList




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: