File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PriorityQueue Class - Why is this happening

 
Jim Hester
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So I'm trying to set up a PriorityQueue that sorts two nodes (part of an implementation of the A* algorithm), and I THINK I'm using the constructor right, but it's giving me an error (type <package>.PriorityQueue does not take parameters. Any thoughts as to what I'm doing wrong? Putting entire class code as I have it currently in there, but really just interested in feedback on how to get my PriorityQueue working. thanks!

 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like you may have your own class named "PriorityQueue" somewhere. What is "<package>" in your code above? If it's anything other than "java.util", then it should point you to where this other class is. It might be in a library somewhere, or something you created. If it's the latter, then your operating system's "find file" capability might help you find PriorityQueue.class and/or PriorityQueue.java, wherever they live.
 
Jim Hester
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ernest Friedman-Hill wrote:Sounds like you may have your own class named "PriorityQueue" somewhere. What is "<package>" in your code above? If it's anything other than "java.util", then it should point you to where this other class is. It might be in a library somewhere, or something you created. If it's the latter, then your operating system's "find file" capability might help you find PriorityQueue.class and/or PriorityQueue.java, wherever they live.


that was it! I had a class file for "PriorityQueue" I had started and forgot about. thanks so much.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic