java trouble with trees
<p>Binary trees are giving me a problem and I am trying to learn them. I need to make an array of trees and put user input into a Node. Then take those nodes and put them in a tree as the root. Then put all these one node trees in the array. I have the array of trees and the user input is creating nodes, but I'm stuck after this. Any suggestions?</p>

<pre><code> class Tree
{
public Node root;

 public Tree()
 { 
    root = null; 
   }
 }           


class Node
{

 public int iData;
 public Node leftChild;
 public Node rightChild;
 public void displayNode()
{
 System.out.print('{');
 System.out.print(iData);
 System.out.print(", ");
 System.out.print("} ");
   }
 } 


Tree myTrees[] = new Tree[3];
Scanner scan = new Scanner(System.in);

Node newNode = new Node();
Node plusNode = new Node();
Node root = new Node();
char plussign[] = {'+'};
String str  = new String(plussign);

System.out.print(str);

for (int i = 0; i &lt; myTrees.length; i++)
{
    System.out.print("Enter value : ");

    newNode.iData = scan.next().charAt(0);
    myTrees[i] = new Tree();
    myTrees[i].root = root;
    myTrees[i].displayTree();
}
</code></pre>
