title: How to correct Error to use generic LinkedList in Java?
body: <p>I'm using LinkedList with generic types and get this error, </p>
  
  <pre><code>error: type LinkedList does not take parameters
  Queue&lt;Node&gt; list = new LinkedList&lt;Node&gt;();
  </code></pre>
  
  <p>I have <code>Node class</code> with simple constructor and some methods that I can provide if required. The import is corrected and as following, </p>
  
  <pre><code>import java.util.*;
  </code></pre>
  
  <p>I have a method where I have initiated the LinkedList object as following, </p>
  
  <pre><code>public static boolean searchNode(Graph graph, Node start, Node end){
  
       Queue&lt;Node&gt; list = new LinkedList&lt;Node&gt;();
  }
  </code></pre>
  
  <p>What's the issue here  and why do I get error ? I use Java 8 for compiling. </p>