mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 08:50:57 +07:00
18 lines
295 B
Java
18 lines
295 B
Java
import java.util.Comparator;
|
|
import java.util.PriorityQueue;
|
|
import java.util.Queue;
|
|
|
|
class Main {
|
|
public static void main(String[] args) {
|
|
Queue<Node> q = new PriorityQueue<>(Comparator.comparing(node -> node.n));
|
|
}
|
|
}
|
|
|
|
class Node {
|
|
final int n;
|
|
|
|
Node(int n) {
|
|
this.n = n;
|
|
}
|
|
}
|