/* an iterator class to iterate over binary trees * @author Biagioni, Edoardo * @assignment lecture 17 * @date March 12, 2008 */ import java.util.Stack; import java.util.Iterator; public class TreeIterator<T> implements Iterator<T> { /* the class variables keep track of how much the iterator * has done so far, and what remains to be done. * root is null when the iterator has not been initialized,