public Iterator(TernaryTree parent) { this.parent = parent; cur = -1; ns = new Stack(); ks = new StringBuilder(); Rewind(); }