Hello, I've been reading the Head First Design
Patterns book and i've stumbled upon a problem. On the chapter about the iterators, i tried typing and compiling the code that the book gives, but i cant get it to compile.
Specifically I'm getting an error on: return new PancakeHouseMenuIterator(menuItems); this line in the end.
.\PancakeHouseMenu.java:26: cannot find symbol
symbol : constructor PancakeHouseMenuIterator(java.util.ArrayList<MenuItem>)
location: class PancakeHouseMenuIterator
return new PancakeHouseMenuIterator(menuItems);
Could somebody help me out with this one? I don't see what is wrong with it. By the way here's the PancakeHouseMenuIterator class, since i think it is pretty useful to help me resolving this problem.
If you need anything else please let me know, thanks in advance.