private String formatNode(RightThreadedBinaryNode<T> node){
  RightThreadedBinaryNode<T> n;
  StringBuilder response=new StringBuilder("(");
  if ((n=node.getLeftSon()) != null) {
    response.append(formatNode(n));
  }
  response.append(node.toString());
  if ((n=node.getRightSon()) != null) {
    response.append(formatNode(n));
  }
  response.append(")");
  return response.toString();
}

private String formatNode ( RightThreadedBinaryNode < T > node ) { RightThreadedBinaryNode < T > n ; StringBuilder response = new StringBuilder ( "(" ) ; if ( ( n = node . getLeftSon ( ) ) != null ) { response . append ( formatNode ( n ) ) ; } response . append ( node . toString ( ) ) ; if ( ( n = node . getRightSon ( ) ) != null ) { response . append ( formatNode ( n ) ) ; } response . append ( ")" ) ; return response . toString ( ) ; }
format the node , recursively .
