JAVA: basic programming help needed, what code executes by default
<p>I am trying to practice for my programming exam. Only problem is in all of these examples we have done in class there has been a GUI written and we just have to input in the method bodies.</p>

<p>I am writing a program here, and I just need the information from operations() method to print in the output window.</p>

<pre><code> package frenchbinarytreepractice;

 /**
 *
 * @author Sam
 */
import java.util.*;
import java.lang.*;

public class Main {

public static void main(String[] args) {
}
}

//Building Binary Trees
class bTree {

static class Node { //remember to initilize a root

    String value;
    Node left, right;

    Node(String value, Node left, Node right) {
        this.value = value;
        this.left = left;
        this.right = right;
    }

    Node(String value) //THIS IS A SIBLING CONSTRUCTOR
    {
        this(value, null, null);
    }
}

private Node root;

static void creator() {
    Node root = new Node("ROOT");
    Node lefty = new Node("LEFT0");
    Node righty = new Node("RIGHT0");
    root.left = lefty;
    root.right = righty;
}

//This method will find the size of a node
public int size(Node r)
{
    if(r==null)
    {
        return 0;
    }
    else
    {
        return 1+(size(r.left)+size(r.right));
    }
}
public static void operations()
{
    System.out.println("Size of main: " + size(root));
}
}
</code></pre>
