---
title: "設計模式之Iterator"
author: "fanjava"
date: "2004-06-24T20:14:00Z"
tags: []
slug: "iterator"
draft: false
lastmod: "2004-06-24T20:14:00Z"
id: 602046
url: "https://fanjava.iteye.com/blog/602046"
---

這個模式已經被用來遍曆Collection中物件。使用頻率很高。在Java中無需專門闡述,在大多數場合也無需自己製造一個Iterator,只要將物件裝入Collection中，我們就直接可以使用Iterator模式。