11 lines
246 B
Text
11 lines
246 B
Text
|
|
pq = newJava["java.util.PriorityQueue", new Comparator[byColumn[0]]]
|
||
|
|
|
||
|
|
pq.add[[3, "Clear Drains"]]
|
||
|
|
pq.add[[4, "Feed cat"]]
|
||
|
|
pq.add[[5, "Make tea"]]
|
||
|
|
pq.add[[1, "Solve RC tasks"]]
|
||
|
|
pq.add[[2, "Tax return"]]
|
||
|
|
|
||
|
|
while ! pq.isEmpty[]
|
||
|
|
println[pq.poll[]]
|