title: how to fix this code if i have lower version of java?
body: <p>I am creating a binary search tree but I have a error because in our school we have a lower version of java or should I say compiler jdk1.6.0_45 
  how to fix this error?</p>
  
  <p>this is the error if i run it in 1.6.0</p>
  
  <pre><code>  illegal start of type
    Node node = new Node&lt;&gt;(value);
  </code></pre>
  
  <p>how can I arrange this in order to run in a lower version?
  ps. that is the only compiler that i can use</p>
  
  <p>i have some example</p>
  
  <p>this is not working in a lower version</p>
  
  <pre><code>Stack&lt;Character&gt; s = new Stack&lt;&gt;();
  </code></pre>
  
  <p>but this one is working</p>
  
  <pre><code>Stack&lt;Character&gt; s = new Stack&lt;Character&gt;();
  </code></pre>