title: Why can't I use "String" as a parameter for a priority queue?
body: <p>I'm trying to implement the A* algorithm in Processing 3, and I decided to use a priority grid to store and prioritize explorable nodes. I had just decided to do a simple test to make sure I knew the syntax, but when I try to set the type of the queue to "String" or "Integer" I get the error <code>The type filename.PriorityQueue is not generic; it cannot be parameterized with arguments &lt;String&gt;</code> Any idea why this is happening?</p>
  
  <pre><code>import java.util.PriorityQueue;
  import java.util.Comparator;
  
  public class Test {
      public void main(String[] args) {
        PriorityQueue&lt;String&gt; pq= new PriorityQueue&lt;String&gt;(5,(a,b) -&gt; a.length() - b.length());
      }
  }
  </code></pre>