Max value in priority queue java

PriorityQueue<Integer> maxPriorityQueue = new PriorityQueue<>((a,b) -> b - a);
Content Protection by DMCA.com
Please Share