| Author |
PriorityQueue Class - Why is this happening
|
Jim Hester
Ranch Hand
Joined: Sep 19, 2009
Posts: 36
|
|
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
Joined: Jul 08, 2003
Posts: 24054
|
|
|
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.
|
[Jess in Action][AskingGoodQuestions]
|
 |
Jim Hester
Ranch Hand
Joined: Sep 19, 2009
Posts: 36
|
|
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.
|
 |
 |
|
|
subject: PriorityQueue Class - Why is this happening
|
|
|