How to create a Queue in Java that will hold a class I've made
<p>I am trying to create a Queue in java to hold objects of type Employee. This is what I have been trying to do with no success, it keeps telling me that queue is not generic.</p>

<pre><code>Queue&lt;Employee&gt; empList = new LinkedList&lt;Employee&gt;();
</code></pre>

<p>. employee class .</p>

<pre><code>abstract class Employee 
{
   String name;

   Employee() {}
   Employee (String nm) { name = nm; }
   abstract double computePay();
   void display () {}
   void setHours(double hrs) {}
   void setSales(double sales) {}
   void setSalary(double salary) { System.out.println("NO!"); }
}
</code></pre>
