Inserting a node in a binary tree
<p>This is my method so far it's probably wrong but I need to insert a node in a binary tree.</p>

<pre><code>public Node insert(Node node, int data)
{
    if (root = null)
     {
        root = insert(data);
     }
     else if (data &lt; node.data)
     {
        node.left = insert(data);
     }
     else if (data &gt; node.data)
     {
        node.right = insert(data);   
     } 
}
</code></pre>

<p>help? I'm using bluej</p>
