PriorityQueue 在Java 1.5中添加了
new PriorityQueue()在Android中启用,但是
new PriorityQueue(new Comparator() {
@Override
public int compare(Object o1, Object o2) {
return 0;
}
});
Run Code Online (Sandbox Code Playgroud)
需要API 24.为什么?