Copying a Binary Tree in Java using a preorder traversal
<p>I am trying to copy a binary tree using the pre order traversal but I am stuck.
As I am not putting any of the values into a new tree they are obviously not copying correctly...</p>

<pre><code>public class Node{

int key;
String name;

Node leftChild;
Node rightChild;

Node(int key, String name){
    this.key = key;
    this.name = name;

}



public class BinaryTree{

public Node root;

public void copyTree(Node focusNode){

    if(focusNode != null){

        Node copyNode = new Node(focusNode.key, focusNode.name);

        //System.out.println(copyNode);

        copyTree(focusNode.leftChild);
        copyTree(focusNode.rightChild);
    }
}
</code></pre>

<p>}</p>