priority queue java reverse order

Java
import java.util.*;
PriorityQueue<T> queue = new PriorityQueue<>(Collections.reverseOrder());
Source

Also in Java: