Skip to content

Commit c1354ef

Browse files
authored
Update README.md
1 parent 94bd89f commit c1354ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# What is Interpreter Design Pattern
1+
# What is Iterator Design Pattern
22
Iterator Design Pattern enables to get a way to access the elements of a collection object in sequential manner without any need to know its underlying representation.
33

44
## Diagram
55
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/Iterator%20Design%20Pattern%20class%20diagram.jpeg "Diagram")
66

77
![Diagram](https://github.com/premaseem/DesignPatternsJava9/blob/iterator-pattern/diagrams/IteratorPatternSequenceDiagram.png "Diagram")
88

9-
### When to use Interpreter Design Pattern
9+
### When to use Iterator Design Pattern
1010
* When there is a need to take the responsibility for access and traversal out of the aggregate / collection object and define a standard traversal protocol.
1111
* Iterator pattern is widely used in Java Collection Framework.
1212

0 commit comments

Comments
 (0)