當某個類實現Iterable 接口時,我們就能稱這個類是一個“可數” 的類,也就是可以使用 iterator() 獲取一個迭代器Iterator,然後使用這個Iterator 實例 ...
確定! 回上一頁