File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ underlying representation.
19
19
20
20
## Explanation
21
21
22
- Real world example
22
+ Real- world example
23
23
24
24
> Treasure chest contains a set of magical items. There multiple types of items such as rings,
25
- > potions and weapons. The items can be browsed by type using an iterator the treasure chest
25
+ > potions, and weapons. The items can be browsed by type using an iterator the treasure chest
26
26
> provides.
27
27
28
28
In plain words
@@ -113,7 +113,7 @@ public interface Iterator<T> {
113
113
}
114
114
```
115
115
116
- In the following example we iterate through the ring type items found in the chest.
116
+ In the following example, we iterate through the ring- type items found in the chest.
117
117
118
118
``` java
119
119
var itemIterator = TREASURE_CHEST . iterator(ItemType . RING );
@@ -145,7 +145,7 @@ Use the Iterator pattern
145
145
146
146
* [ How to Use Iterator?] ( http://www.tutorialspoint.com/java/java_using_iterator.htm )
147
147
148
- ## Real world examples
148
+ ## Known uses
149
149
150
150
* [ java.util.Iterator] ( http://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html )
151
151
* [ java.util.Enumeration] ( http://docs.oracle.com/javase/8/docs/api/java/util/Enumeration.html )
You can’t perform that action at this time.
0 commit comments