Max value in priority queue java January 29, 2022 by Alex Martin PriorityQueue maxPriorityQueue = new PriorityQueue<>((a,b) -> b - a); Alex Martin