title: Can't add objects to priority queue
body: <p>I need to add a Jedi object to a queue. None of the add methods that I know are working and all give the "cannot find symbol - method add(jedi1).I didn't learn much about Queues in my last class so I'm not exactly sure what I'm doing. Other things to note are 3 specifics of this. </p>
  
  <p>1)Modify the heap operations to keep the maximum – rather than the minimum – element in the root. Refer to the Heap lab assignment for the algorithm.</p>
  
  <p>2)  Utilize an array with a varying size limit (if &lt;10% utilization reduce it by half; if full, double the size).</p>
  
  <p>3)  Implement the heap to receive any generic object with a comparable method. </p>
  
  <p>4)  Allow for duplicate value with the following rule: If a duplicate value is entered, the new element with similar value should be considered to have less priority than an existing element.</p>
  
  <pre><code>    public class PriorityQueue&lt;JediQ&gt;
      {
          Scanner reader = new Scanner(System.in);
          public void main(String[] args)
      {
         while (true)
      {
          System.out.println("Please select an option");
          System.out.println("1 - Add a Jedi ");
          System.out.println("2 - Remove an element");
          System.out.println("3 - Print head value");
          System.out.println("4 - Compare value to head value");
          System.out.println("5 - Print Array");
          System.out.println("6 - Exit");
          int x = 0;
          x = reader.nextInt();
  
          if (x == 1)
          {
              PriorityQueue&lt;JediQ&gt; line = new PriorityQueue&lt;JediQ&gt;();
              System.out.println("Enter the name of the Jedi");
              String Name = reader.next();
              System.out.println("Enter the midi count");
              double midi = reader.nextInt();
  
              Jedi jedi1 = new Jedi(Name, midi);
  
              line.add(jedi1);
  
              System.out.print("Jedi was added");
          }
          if (x == 6)
          {
              System.exit(0);
          }
      }
  }
  </code></pre>
  
  <p>}</p>