The best reusable option is to implement the interface Iterable and override the method iterator(). Here's an example of a an ArrayList like class ...
確定! 回上一頁