public String toString(){
  if (root == null) {
    return "";
  }
  StringBuilder sb=new StringBuilder();
  buildString(sb,root);
  return sb.toString();
}

public String toString ( ) { if ( root == null ) { return "" ; } StringBuilder sb = new StringBuilder ( ) ; buildString ( sb , root ) ; return sb . toString ( ) ; }
reasonable tostring to aid debugging .
