title: Node for BST in Java
body: <p>I'm having some trouble with writing a node for my Binary Search Tree. I know it should point to the left child and right child, and in the data field it will have a string, but I also want it to point to an arraylist. Which is the part I'm not sure how to code myself in java. </p>
  
  <pre><code>class BSTNode {
  
      BSTNode( Comparable theString ) {
          element = theString;
          left = right = null;
      }
  
      Comparable element;      // The data in the node
      BSTNode left;         // Left child
      BSTNode right;        // Right child
  }
  </code></pre>