Using Priority Queues in java
How do I declare one ? I have a custom class and a custom comparator. The following lines do not compile:
PriorityQueue<path> possiblePaths;
possiblePaths = new PriorityQueue(5,new pathCmp());
I have included java.util.*;
it says "Syntax error on token : '<' remove this token" which doesn't make sense ... isn't that how you declare the templated object?
Thanks

