public void reset(){
  ns.removeAllElements();
  ks.setLength(0);
  cur=tt.root;
  run();
}

public void reset ( ) { ns . removeAllElements ( ) ; ks . setLength ( 0 ) ; cur = tt . root ; run ( ) ; }
resets the iterator to its initial state .
