title: error cannot infer type arguments for node<>
body: <p>When i try to create a Node, appear "error cannot infer type arguments for node&lt;>"
  why? I do not know why it could be</p>
  
  <pre><code>public class LinkedDoubleEndedQueue&lt;T&gt; implements DoubleEndedQueue&lt;T&gt; {
  
      private static class Node&lt;E&gt; {
          private E elem;
          private Node&lt;E&gt; next;
          private Node&lt;E&gt; prev;
  
          public Node(E x, Node&lt;E&gt; nxt, Node&lt;E&gt; prv) {
              elem = x;
              next = nxt;
              prev = prv;
          }
      }
  
      private Node&lt;T&gt; first, last;
  
  @Override
  public void addFirst(T x) {
      // TODO Auto-generated method stub
          Node&lt;T&gt; node = new Node&lt;&gt;();
  
  
  }
  </code></pre>