aspose file tools*
The moose likes Beginning Java and the fly likes PriorityQueue Class - Why is this happening Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "PriorityQueue Class - Why is this happening" Watch "PriorityQueue Class - Why is this happening" New topic
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: 24187
    
  34

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PriorityQueue Class - Why is this happening