I'm writing an algorithm which needs an array of PriorityQueues. Can I get something like:
public double[][] distance_table = new double[300][300];
Using priorityQueue? I tried:
public PriorityQueue<Double>[] queue_table = new PriorityQueue<>(300, comparator)[300];
But Netbeans says:
array required, but PriorityQueue found.
It has an error icon so it isn't a warning.
>>`, for instance with `ArrayLists`.
– Socowi May 07 '17 at 10:30