Add all 23 GoF design pattern implementations (2026-06-13)
This commit is contained in:
7
03-behavioral/iterator/BookIterator.java
Normal file
7
03-behavioral/iterator/BookIterator.java
Normal file
@@ -0,0 +1,7 @@
|
||||
package iterator;
|
||||
|
||||
/** Our custom Iterator interface (mirrors java.util.Iterator) */
|
||||
public interface BookIterator {
|
||||
boolean hasNext();
|
||||
Book next();
|
||||
}
|
||||
Reference in New Issue
Block a user