Method calling from 2 diffferent classes
<p>I am new to java. I have 2 methods form 2 different classes. I would like to return the methods into 1 class. An error is occuring to me. Could someone see the code and help me pls?</p>

<pre><code>public int getHeight () {
    if (nd.leftNode == null &amp;&amp; nd.rightNode== null) {
        return 0;
    } else {
        int leftH = 0;
        int rightH = 0;
        if (nd.leftNode != null) {
            leftH++;
            leftH += nd.getLeftNode().getHeight();
        }
        if (nd.rightNode != null) {
            rightH++;
            rightH += nd.getRightNode().getHeight();
        }
        return Math.max(leftH,rightH);
    }
}

public int getLeftHeight() {
    if (nd.leftNode == null) {
        return 0;
    } else {
        return nd.getLeftNode().getHeight() + 1; //error here cannot find symbol getHeight()
    }

public class Node {
    public Node getLeftNode(){
        return leftNode;
    }
</code></pre>

<p>I appreciate any help.</p>
