title: Cannot Resolve Method when using generics
body: <p>I am trying to implment a tree for my project.</p>
  
  <p>This tree will contain nodes which are different board states after some move.</p>
  
  <p>Right now my project is structured like so:</p>
  
  <pre><code>                               src
              Agent      Support              Test               Threes
          Tree.java      Some class.java      some class          Board.java
  </code></pre>
  
  <p>I want my tree to store these Board objects kept in package src.Threes. However in my Tree class it is not letting me access my public board methods.</p>
  
  <p>I am confident that I am just missing some really basic thing but I cannot figure this out after spending time hunting down what I am missing.</p>
  
  <p>Please see my Tree.java code below:</p>
  
  <pre><code>package src.Agent;
  
  
  import java.util.ArrayList;
  import src.Threes.Board; // unused import
  import java.util.List;
  
  
  public class Tree&lt;Board&gt; {
  
      private Node&lt;Board&gt; root;
  
  public Tree(Board RootData){
      root = new Node&lt;Board&gt;(RootData);
      //root.data = RootData;
      //root.children = new ArrayList&lt;Node&lt;Board&gt;&gt;(); // maximum length of 4
  
  
  }
  
  
  
  
  
  public static class Node&lt;Board&gt;{
      private Board data;
      private Node&lt;Board&gt; parent;
      private List&lt;Node&lt;Board&gt;&gt; children;
  
      public Node(Board board){
          data = board;
          children = new ArrayList&lt;Node&lt;Board&gt;&gt;();
  
      }
  
      private boolean addChild(Board board){
          return !board.gameOver(); // Cannot resolve method gameOver() (public method in Board).
      }
  
  
  
  
  }
  
  public static void main(String[] args){
  
  }
  </code></pre>
  
  <p>}</p>