Iterator 可以用來處理任何的 collection 。 ... Iterator<String> it = cars.iterator(); ... hasNext() 和 it.next() 等方法做集合的歷遍。
確定! 回上一頁