Hi,
I found a potential error when I used the example provided below:
/coursera-algorithms-on-graphs/Dijkstra.java
How I executed:
javac Dijkstra.java
java Dijkstra
Error message:
Dijkstra.java:97: cannot find symbol
symbol : constructor PriorityQueue(<anonymous java.util.Comparator<Dijkstra.DistNode>>)
location: class java.util.PriorityQueue<Dijkstra.DistNode>
PriorityQueue pq = new PriorityQueue(new Comparator(){
^
p.s. "^" above points at the keyword "new." It lost it's correct position when I posted the comment.
Hi,
I found a potential error when I used the example provided below:
/coursera-algorithms-on-graphs/Dijkstra.java
How I executed:
javac Dijkstra.java
java Dijkstra
Error message:
Dijkstra.java:97: cannot find symbol
symbol : constructor PriorityQueue(<anonymous java.util.Comparator<Dijkstra.DistNode>>)
location: class java.util.PriorityQueue<Dijkstra.DistNode>
PriorityQueue pq = new PriorityQueue(new Comparator(){
^
p.s. "^" above points at the keyword "new." It lost it's correct position when I posted the comment.