Exercise on Iterators

  • Hands on Exercise
Using Eclipse do the following:

1\. Using the code created before for pushing and popping a stack initialize a stack
2\. Create an iterator for a stack using closure and a function that passes in a stack
3\. Write a for loop that iterates through the stack and prints out its values
```